提交 d557f1ba 编写于 作者: M Michael Dawson

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.
上级 65faa8f0
...@@ -27,7 +27,7 @@ module Batches ...@@ -27,7 +27,7 @@ module Batches
# #
# ==== Options # ==== Options
# * <tt>:batch_size</tt> - Specifies the size of the batch. Default to 1000. # * <tt>:batch_size</tt> - Specifies the size of the batch. Default to 1000.
# * <tt>:start</tt> - Specifies the starting point for the batch processing. # * <tt>:start</tt> - Specifies the primary key value to start from.
# This is especially useful if you want multiple workers dealing with # This is especially useful if you want multiple workers dealing with
# the same processing queue. You can make worker 1 handle all the records # 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 # between id 0 and 10,000 and worker 2 handle from 10,000 and beyond
...@@ -77,7 +77,7 @@ def find_each(options = {}) ...@@ -77,7 +77,7 @@ def find_each(options = {})
# #
# ==== Options # ==== Options
# * <tt>:batch_size</tt> - Specifies the size of the batch. Default to 1000. # * <tt>:batch_size</tt> - Specifies the size of the batch. Default to 1000.
# * <tt>:start</tt> - Specifies the starting point for the batch processing. # * <tt>:start</tt> - Specifies the primary key value to start from.
# This is especially useful if you want multiple workers dealing with # This is especially useful if you want multiple workers dealing with
# the same processing queue. You can make worker 1 handle all the records # 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 # between id 0 and 10,000 and worker 2 handle from 10,000 and beyond
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册