Created
January 2, 2012 11:07
-
-
Save arturaz/1550303 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jruby-1.6.5 :018 > c = ActiveRecord::Base.connection.raw_connection.with_connection_retry_guard { |c| c } | |
=> #<Java::ComMysqlJdbc::JDBC4Connection:0x1200320> | |
jruby-1.6.5 :019 > c.create_statement | |
=> #<Java::ComMysqlJdbc::StatementImpl:0x16f974f> |
And it has issues with savepoints and deadlocks mysql, so essentially it's only usable in single thread, but its fast :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks :)
I've written super fast bulk data inserted/updater for mysql + jruby using LOAD DATA INFILE.
Should I post it here?