Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Moved auto-commit logic from Jaybird to the Firebird. #1
Jaybird shows horrible performance in auto-commit mode while executing
Solution: Firebird API has its own auto-commit flag. Firebird knows for
Main changes in code are:
pushed a commit
this pull request
May 29, 2015
I will start experimenting with this next week. As I commented on the firebird-devel mailinglist, I expect some caveats both in the behavior of Firebird with
On Sun, Jun 7, 2015 at 7:26 PM, Mark Rotteveel firstname.lastname@example.org
I implemented this as part of http://tracker.firebirdsql.org/browse/JDBC-399 (both in Branch_2_2 and master). I did not use your pull request directly (although I did reference it to see what you changed). Thanks for the suggestion and the ground work!
This option is enabled by specifying the connection property
With this option, Jaybird will configure the transaction to use
On statement completion (as specified in JDBC), result sets will still close unless they are holdable over commit. The result set is only closed clientside, which means that the cursor remains open server side to prevent roundtrips. This may lead to additional resource usage server side unless explicitly closed in the code. Note that any open blobs will be closed client and serverside (until this is improved with JDBC-401).
A connection can be interrogated using
If you manually add
Support for this option is experimental, and should only be enabled if you 1) know what you're doing, and 2) if you really need this feature. Internally
Whether or not this improves performance has yet to be tested. The Jaybird testsuite does not show a noticeable difference either way, but most tests only use a a few statements on a single connection.
I will release a snapshot somewhere in the next week, or you can compile it yourself.
A test version of 2.2.9 is available from https://github.com/FirebirdSQL/jaybird/releases/tag/v2.2.9-SNAPSHOT