ActiveRecord Scrollable ResultSet plugin

Plugin details

The plugin allows us to iterate through a query's result set in batches resulting in faster response times. Active Record's find methods accumulate all the rows and return them in one shot. This results in a lead time proportional to the size of the result set.

Websitehttp://rubyforge.org/projects/scroll-results/ Repositoryhttp://rubyforge.org/frs/download.php/24484/scrollable_result_set.tar.gz Author Pramod K P Tags ActiveRecord, result LicenseUnknown

Documentation

Install the plugin:
ruby script/plugin install http://rubyforge.org/frs/download.php/24484/scrollable_result_set.tar.gz

Usage:

myModelObject = MyModel.new 
myModelObject.query("some sql query")
myModelObject.fetch_next_batch


For more examples, please look into the test cases.

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | Back in time (2 older versions) | Last edited by: scott, about 1 year ago