I'm using Couchbase 2.0 community edition.I defined a map/reduce view by using built in reduce function _sum.It works in development view.But after published,I got nothing from production view.It seems that it keeps on indexing and never finished.
How big is your data set?
Have you tried to build the index in development mode? (see the option "Full Cluster Data Set" in the "Show Results" section of the page)
Any error in the log?
You can look at the "Troubleshooting Views" available here:
how many documents do you have, carl? also, what kind of instance / machine are you running on?
The document size is about 110MB. It works in development Time Subset.But it doesn't work in Full Cluster Data Set as well.
I checked Couchbase error log,I got something like "reason: Builtin _sum function requires map values to be numbers".It seems that the map values are not number,But I'm sure map values are all numbers.
I have about 42000 documents,the couchbase running instance is:
CPU : Dual Core AMD Opteron(tm) Processor 275
Memory : 16G
CPU : Six-Core AMD Opteron(tm) Processor 2431
Memory : 4G
Maybe you can try to create another design document, with same map function but without the reduce, and check that every value is indeed a number?
Just query the new (map-only) view, without any limit/pagination, and paste it here (unless you sensitive data).
Thanks everyone.It works now.Not sure if it's due to I'm using Couchbase Server 2.0 which I installed Today.
© 2013 COUCHBASE All rights reserved.