Skip to content

How should users manage transactions? #710

Closed Answered by lovasoa
bever1337 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello and thank you for the well-written report and reproduction.

Currently, SQLPage does connection pooling, but does not do anything special at the end of an HTTP request, so it can put back a connection with an open transaction to the pool.

I do agree that this behavior is not desirable. I opened issue #711 to track this.

In the meantime, I think what you are currently doing (commit; begin; at the beginning then commit at the end) is the best solution.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by bever1337
Comment options

You must be logged in to vote
2 replies
@lovasoa
Comment options

@bever1337
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants