aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation/batches.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* copy edit the batches docs [ci skip]Vijay Dev2012-05-301-9/+7
|
* Adds to Batch processing documentation [ci skip]Alvaro Pereyra2012-05-281-9/+20
|
* move code out to active_record_deprecated_findersJon Leighton2012-04-131-7/+2
|
* We need to recorder here. Need to drop the order from default scope.Arun Agrawal2011-09-051-1/+1
| | | Fixes #2832
* Merge pull request #1807 from caius/find_in_batches_id_bugSantiago Pastorino2011-07-141-2/+5
|\ | | | | Bugfix by stopping find_in_batches using the records after yielding.
| * Stop find_in_batches using the records after yielding.Caius Durling2011-06-211-2/+5
| | | | | | | | | | | | Currently if the code that calls .find_in_batches modifies the yielded array in place then .find_in_batches can enter an infinite loop searching with ruby object ids in the database instead of the primary key of records in the database. This happens because it naively assumes the yielded array hasn't been modified before calling #id on the last object in the array. And ruby (1.8 at least) alias' #id to #object_id so an integer is still returned no matter what the last object is. By moving finding the #id of the last object before yielding the array it means the calling code can do whatever it wants to the array in terms of modifying it in place, and .find_in_batches doesn't care.
* | Make `ActiveRecord::Batches#find_each` to not return `self`.knapo2011-07-071-2/+0
|/ | | | This caused that `find_each` was producing extra db call taking all the records from db, and was less efficient than `ActiveRecord::Base#all`.
* Quote find_in_batches ORDER BY clause [#6620 state:resolved]Andrew White2011-03-291-1/+1
|
* Fix Typos: remove several occurences of the theNicholas Rowe2011-02-171-1/+1
|
* ActiveRecord::Relation#primary_key should return a string, just like ↵Jon Leighton2011-01-031-3/+3
| | | | ActiveRecord::Base.primary_key does.
* un-nodocs AR::BatchesXavier Noria2010-09-211-1/+1
|
* avoid method_missing and reduce method callsAaron Patterson2010-09-101-1/+1
|
* call to_a since we are not passing anything to all()Aaron Patterson2010-08-041-1/+1
|
* fisting indentationAaron Patterson2010-08-041-3/+3
|
* Improve code from 231d7676f72947bae765b9bd885b134aaf949921Pratik Naik2010-05-091-7/+5
|
* corrected AR find_each and find_in_batches to raise when the user uses ↵Josh Kalderimis2010-05-091-1/+8
| | | | | | select but does not specify the primary key Signed-off-by: José Valim <jose.valim@gmail.com>
* Warn scoped order and limit are ignored. [#4123 state:resolved]Emilio Tagua2010-03-291-1/+5
|
* adds missing requires for Object#blank? and Object#present?Xavier Noria2010-03-281-0/+2
|
* Move batch finders to RelationPratik Naik2010-02-121-0/+78