default page size of 2000 in key_reduce

This commit is contained in:
Chris Anderson 2008-10-21 16:46:14 -07:00
parent ebfda803c8
commit 9787c5830a

View file

@ -20,7 +20,7 @@ module CouchRest
end end
end end
def key_reduce(view, count, firstkey = nil, lastkey = nil, &block) def key_reduce(view, count=2000, firstkey = nil, lastkey = nil, &block)
# start with no keys # start with no keys
startkey = firstkey startkey = firstkey
# lastprocessedkey = nil # lastprocessedkey = nil