Skip to content

Instantly share code, notes, and snippets.

@arturaz
Created January 2, 2012 11:07
Show Gist options
  • Save arturaz/1550303 to your computer and use it in GitHub Desktop.
Save arturaz/1550303 to your computer and use it in GitHub Desktop.
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>
@arturaz
Copy link
Author

arturaz commented Jan 3, 2012

Thanks :)

I've written super fast bulk data inserted/updater for mysql + jruby using LOAD DATA INFILE.

Should I post it here?

@arturaz
Copy link
Author

arturaz commented Jan 3, 2012

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