Code Monkey home page Code Monkey logo

Comments (6)

beltran avatar beltran commented on August 23, 2024

What error are you getting? I'm not surprised this is not working. There should be one cursor per connection. Why not just have this?

from gohive.

shcw avatar shcw commented on August 23, 2024

你遇到了什么错误?我并不惊讶这不起作用。每个连接应该有一个游标。为什么不只拥有这个?

I wrote a timed task and I want multiple processes to synchronize data at the same time, but it is the same connection. Do I need to re-establish the connection?

from gohive.

beltran avatar beltran commented on August 23, 2024

Yes, you need one cursor per connection. I've actually never tried to use several cursors on the same connection. It's possible it works, or that it doesn't work but there's an easy fix. But the library was built with the assumption there would be one cursor per connection.

from gohive.

shcw avatar shcw commented on August 23, 2024

是的,每个连接需要一个光标。我实际上从未尝试在同一连接上使用多个游标。它可能有效,或者它不起作用,但有一个简单的解决方法。但是该库是在假设每个连接有一个游标的情况下构建的。

thx, is there a recommended way to create a connection pool ?

from gohive.

beltran avatar beltran commented on August 23, 2024

is there a recommended way to create a connection pool ?

Unfortunately I'm not aware of any best practices, but if you end up doing this please share the knowledge you acquire 🙂

from gohive.

shcw avatar shcw commented on August 23, 2024

is there a recommended way to create a connection pool ?

Unfortunately I'm not aware of any best practices, but if you end up doing this please share the knowledge you acquire 🙂

thx ~

from gohive.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.