Optimized Model.count to run about 3x faster
This commit is contained in:
parent
8f8b5dc568
commit
964526193b
3 changed files with 3 additions and 7 deletions
|
@ -37,9 +37,6 @@ module CouchRest
|
|||
if (doc['couchrest-type'] == '#{self.to_s}') {
|
||||
emit(null,1);
|
||||
}
|
||||
}",
|
||||
'reduce' => "function(keys, values) {
|
||||
return sum(values);
|
||||
}"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue