0
I Use This!
Activity Not Available

Project Summary

BatchedSqlFuThis is vendor specific to MySQL or any RDBMS that supports the syntax :

INSERT INTO

(col1, col2) VALUES ('val1', 'val2'), ('val3', 'val4'), ('val5', 'val6').

What it does is it overrides the insert method of the connection adapter for the duration of the block and flushes inserts every after 100 inserts are by the value you specify.

ExampleLine.insert_by_batch do

Line.create(:text => 'Hello')
Line.create(:text => 'World')
end

all statements will be the executed in one SQL.

Installruby script/plugin install http://batched-sql-fu.googlecode.com/svn/trunk/batched_sql_fu

CaveatsYou might not receive the expected result from Line.create or Line.save since the statements are executed later.

This plugin is experimental. Use it at your own risk!

Copyright (c) 2008 David, released under the MIT license

Tags

activerecord batch plugin processed rails ruby

In a Nutshell, batched-sql-fu...

 No code available to analyze

Open Hub computes statistics on FOSS projects by examining source code and commit history in source code management systems. This project has no code locations, and so Open Hub cannot perform this analysis

Is this project's source code hosted in a publicly available repository? Do you know the URL? If you do, click the button below and tell us so that Open Hub can generate statistics! It's fast and easy - try it and see!

Add a code location

MIT License
Permitted

Commercial Use

Modify

Distribute

Sub-License

Private Use

Forbidden

Hold Liable

Required

Include Copyright

Include License

These details are provided for information only. No information here is legal advice and should not be used as such.

All Licenses

This Project has No vulnerabilities Reported Against it

Did You Know...

  • ...
    Black Duck offers a free trial so you can discover if there are open source vulnerabilities in your code
  • ...
    compare projects before you chose one to use
  • ...
    65% of companies leverage OSS to speed application development in 2016
  • ...
    anyone with an Open Hub account can update a project's tags

 No code available to analyze

Open Hub computes statistics on FOSS projects by examining source code and commit history in source code management systems. This project has no code locations, and so Open Hub cannot perform this analysis

Is this project's source code hosted in a publicly available repository? Do you know the URL? If you do, click the button below and tell us so that Open Hub can generate statistics! It's fast and easy - try it and see!

Add a code location

Community Rating

Be the first to rate this project
Click to add your rating
   Spinner
Review this Project!
Sample ohloh analysis