Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 2.0

Couchbase built in reduce function in production view doesn't work

6 replies [Last post]
  • Login or register to post comments
Tue, 12/11/2012 - 13:07
carl
Offline
Joined: 08/21/2012
Groups: None

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.

Top
  • Login or register to post comments
Tue, 12/11/2012 - 23:04
tgrall
Offline
Joined: 09/05/2012
Groups: None

Hello,

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:
http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-views-troub...

Regards
Tug

__________________

Tug
@tgrall

Top
  • Login or register to post comments
Wed, 12/12/2012 - 00:17
dipti
Offline
Joined: 11/02/2011
Groups:

how many documents do you have, carl? also, what kind of instance / machine are you running on?

Top
  • Login or register to post comments
Wed, 12/12/2012 - 11:19
carl
Offline
Joined: 08/21/2012
Groups: None

Hi,Tug
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.

Regards
Carl

Top
  • Login or register to post comments
Wed, 12/12/2012 - 11:27
carl
Offline
Joined: 08/21/2012
Groups: None

Hi,
I have about 42000 documents,the couchbase running instance is:
instance 1:
CPU : Dual Core AMD Opteron(tm) Processor 275
Memory : 16G

instance 2:
CPU : Six-Core AMD Opteron(tm) Processor 2431
Memory : 4G

Thanks
Carl

Top
  • Login or register to post comments
Wed, 12/12/2012 - 11:51
FilipeManana
Offline
Joined: 04/02/2012
Groups: None

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).

Top
  • Login or register to post comments
Wed, 12/12/2012 - 16:05
carl
Offline
Joined: 08/21/2012
Groups: None

Thanks everyone.It works now.Not sure if it's due to I'm using Couchbase Server 2.0 which I installed Today.

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker