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

How does Couchbase _count?

2 replies [Last post]
  • Login or register to post comments
Sat, 01/12/2013 - 17:02
Me
Offline
Joined: 01/09/2013
Groups: None

Does it just have unique index entries and increase by one when I add a new document entry?

or

does it always create a new index entry and actually count them whenever I trigger the View?

Top
  • Login or register to post comments
Mon, 01/14/2013 - 09:48
tgrall
Offline
Joined: 09/05/2012
Groups: None

Hello,

My understanding based on your question is that you are talking about the _count reduce function that Couchbase provides for views. So let me answer with this in mind.

So when you are creating a view, Couchbase create an index and this index is updated based on the various operations on the document. This is what we call "incremental map reduce". You can find more information about index and views where:
http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-views-opera...

So the count is based on the index that is stored on the disk and calculated based on the parameters/groups you send to the view when doing a query.

Let me know if you need more information.

Regards

__________________

Tug
@tgrall

Top
  • Login or register to post comments
Sun, 01/20/2013 - 13:40
Me
Offline
Joined: 01/09/2013
Groups: None

Thank you very much. I guess I understand it now.

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