From d557f1bac0c9e52078432a4e205b2d4870616c2a Mon Sep 17 00:00:00 2001 From: Michael Dawson Date: Fri, 19 Dec 2014 15:42:40 +1000 Subject: Clarity start parameter I find that `Specifies the starting point for the batch processing.` does not give enough information for me to understand what this parameter actually does. --- activerecord/lib/active_record/relation/batches.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activerecord/lib/active_record/relation/batches.rb') diff --git a/activerecord/lib/active_record/relation/batches.rb b/activerecord/lib/active_record/relation/batches.rb index 20d24b409b..4f0502ae75 100644 --- a/activerecord/lib/active_record/relation/batches.rb +++ b/activerecord/lib/active_record/relation/batches.rb @@ -27,7 +27,7 @@ module ActiveRecord # # ==== Options # * :batch_size - Specifies the size of the batch. Default to 1000. - # * :start - Specifies the starting point for the batch processing. + # * :start - Specifies the primary key value to start from. # This is especially useful if you want multiple workers dealing with # the same processing queue. You can make worker 1 handle all the records # between id 0 and 10,000 and worker 2 handle from 10,000 and beyond @@ -77,7 +77,7 @@ module ActiveRecord # # ==== Options # * :batch_size - Specifies the size of the batch. Default to 1000. - # * :start - Specifies the starting point for the batch processing. + # * :start - Specifies the primary key value to start from. # This is especially useful if you want multiple workers dealing with # the same processing queue. You can make worker 1 handle all the records # between id 0 and 10,000 and worker 2 handle from 10,000 and beyond -- cgit v1.2.3