Giter Site home page Giter Site logo

Comments (7)

iamtennislover avatar iamtennislover commented on May 29, 2024

It looks like the status is set to PENDING and doesn't change to FREE. I am using latest version

from tedious-connection-pool.

ben-page avatar ben-page commented on May 29, 2024

Are your database credentials correct? Are you able to make queries before calling release()? If so, will you put together a simple example that demonstrates the problem?

from tedious-connection-pool.

iamtennislover avatar iamtennislover commented on May 29, 2024

Yes, i have the right credentials. Yes, I am able to make queries before connection.release() too. I think i solved it once I removed connection.close(). Not sure, why, but certainly that was the problem. In regards to a simple example, the issue came up only when I had many connections to the server. I don't have a example yet, but i will once the issue comes again. thanks

from tedious-connection-pool.

ben-page avatar ben-page commented on May 29, 2024

That seems likely. I never built a unit test for close(). There are very few reasons to ever call it. It removes all the benefit of using the connection pool. I'll see if I can reproduce the behavior.

from tedious-connection-pool.

iamtennislover avatar iamtennislover commented on May 29, 2024

cool. thanks for ur help. i am actually new to database (and obviously very new to connection pooling), so thats why i wasn't using the tedious lib the right way

from tedious-connection-pool.

ben-page avatar ben-page commented on May 29, 2024

No problem. The best way is to just release the connection, so that it can be reused.

FYI, I was able to reproduce the issue you described with calling close() and then release(). I fixed it so the connection pool will ignore calls to release() if the connection has been closed. I also tried improve the documentation and example to make the usage of release() more clear.

from tedious-connection-pool.

iamtennislover avatar iamtennislover commented on May 29, 2024

great. thanks

from tedious-connection-pool.

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.