I just installed CouchBase 1.8 and am using .NET client to interact with it. I would like to know if there is any way to get all the keys stored in a bucket (and values). Even if its not a .NET solution, its fine as long as it works.
Thanks
V
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would suggest using the Couchbase Server 2.0 Beta – http://www.couchbase.com/couchbase-server/beta. With that version, you’ll be able to use a view to get all docs in a bucket.
Then using the .NET 1.2 Beta client, you’ll be able to iterate over all docs (or use the web console to view the results of the view).
Edited to include .NET sample:
Once you’ve created the view using the JavaScript Map function above, you would use the .NET Client as follows (assuming you created a design document named “utils” and a view named “all_keys”:
or:
More on the .NET Client and views at http://blog.couchbase.com/strongly-typed-views-net-client-library.
— jz