Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dhh committed Feb 23, 2009
1 parent d13623c commit 45787bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activerecord/lib/active_record/batches.rb
Expand Up @@ -7,7 +7,7 @@ def self.included(base)
# When processing large numbers of records, it's often a good idea to do so in batches to prevent memory ballooning. # When processing large numbers of records, it's often a good idea to do so in batches to prevent memory ballooning.
module ClassMethods module ClassMethods
# Yields each record that was found by the find +options+. The find is performed by find_in_batches # Yields each record that was found by the find +options+. The find is performed by find_in_batches
# with a batch size of 1000 (or as specified by the +limit+ option). # with a batch size of 1000 (or as specified by the +batch_size+ option).
# #
# Example: # Example:
# #
Expand All @@ -27,7 +27,7 @@ def each(options = {})
end end


# Yields each batch of records that was found by the find +options+ as an array. The size of each batch is # Yields each batch of records that was found by the find +options+ as an array. The size of each batch is
# set by the +limit+ option; the default is 1000. # set by the +batch_size+ option; the default is 1000.
# #
# You can control the starting point for the batch processing by supplying the +start+ option. This is especially # You can control the starting point for the batch processing by supplying the +start+ option. This is especially
# useful if you want multiple workers dealing with the same processing queue. You can make worker 1 handle all the # useful if you want multiple workers dealing with the same processing queue. You can make worker 1 handle all the
Expand Down

0 comments on commit 45787bd

Please sign in to comment.