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

Getting all bucket keys using the C library

1 reply [Last post]
  • Login or register to post comments
Sun, 03/03/2013 - 09:44
naama
Offline
Joined: 03/03/2013
Groups: None

Hello,
I'm using the C library to store and get data.
Couldn't find a way to retrieve all bucket data from the API. I would like to either get all keys (and values) or get all keys that start with a specific string.
Can anybody please help?

Thanks,
Naama

Top
  • Login or register to post comments
Thu, 03/07/2013 - 00:53
dipti
Offline
Joined: 11/02/2011
Groups:

best way is to create a primary index on the bucket.

something like

emit(meta.id, null);

you can then use this to iterate around the results and do a mget to actually fetch the keys.

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