From 9787c5830a95c407b9a68429d42b5db1fe29f46b Mon Sep 17 00:00:00 2001 From: Chris Anderson Date: Tue, 21 Oct 2008 16:46:14 -0700 Subject: [PATCH] default page size of 2000 in key_reduce --- lib/couchrest/helper/pager.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/couchrest/helper/pager.rb b/lib/couchrest/helper/pager.rb index 6442a90..a797570 100644 --- a/lib/couchrest/helper/pager.rb +++ b/lib/couchrest/helper/pager.rb @@ -20,7 +20,7 @@ module CouchRest 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 startkey = firstkey # lastprocessedkey = nil