incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Liran <>
Subject Custom reduce is slower then _stats
Date Wed, 23 Apr 2014 19:43:21 GMT
Hello everyone,

I tried replacing the built-in _stats function with my own Erlang version
that does only the "min" part:
fun(Keys, Values, ReReduce) ->

I expected it to be faster if not the same, but the _stats was finished in
half the time of my custom reduce!

anyone know why?
i wanted to extend it later to return the doc._id with the minimum value
(the _stats just gives you value, but you don't know who is the document
that this value came from)
but if its gonna be so much slower, its useless.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message