Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto multi-query support #3

Open
fooling opened this issue Sep 3, 2013 · 0 comments
Open

Auto multi-query support #3

fooling opened this issue Sep 3, 2013 · 0 comments

Comments

@fooling
Copy link
Owner

fooling commented Sep 3, 2013

Unlike #2 , multi-query is a way to send several SQLs in a single request.
SQLs are spilited by ";"
We want a way to automaticly collect SQLs and send several SQLs together, then transparently give them back to upper layer.

ONLY a few situation can benifit from this
because there are potential deadlocks when doing this:

updateA(lock)--------------------------------updateB-------------
updateB(lock)--------------------------------updateA(* DEADLOCK *)-----

com.mysql.jdbc can achieve sending SQLs this way via addBatch() and set allowMultiQuery field to true,

But we want a automatic way of using it.
User should not know the details downside.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant