Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Membase | Membase Server 1.6.x

Export All Keys from C#

12 replies [Last post]
  • Login or register to post comments
Mon, 12/20/2010 - 09:07
mhsimkin
Offline
Joined: 12/10/2010
Groups: None

Is there a way to get a list of all the keys in a membase bucket for export.  I need to do this from C#.


Thanks


marc

Top
  • Login or register to post comments
Mon, 12/20/2010 - 13:01
bhawana@membase
Offline
Joined: 10/29/2010
Groups: None

marc,

You can use the TAP protocol.

http://wiki.membase.org/display/membase/TAP+Protocol

A script called tap.py is included with the Membase distribution (/opt/membase/1.6.0/bin/ep_engine/management/tap.py).

https://github.com/membase/ep-engine/blob/master/management/tap.py

Thanks

Bhawana

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Membase: http://www.membase.com/products-and-services/overview
Call or email "sales -at- membase -dot- com" today!

Top
  • Login or register to post comments
Mon, 12/20/2010 - 13:06
mhsimkin
Offline
Joined: 12/10/2010
Groups: None

Bhawana:


I gather from your reply that there is no C# client at this time.


I guess, if I need to see the cache keys, I will have to develop my own client, correct?  As the Python script is not an option.


Is anyone working on a C# tap client?


Thanks


marc

Top
  • Login or register to post comments
Mon, 12/20/2010 - 15:47
bhawana@membase
Offline
Joined: 10/29/2010
Groups: None

There is no C# for your specific use case. You will have to develop your own client and you could use python script (tap.py) as a reference. There are other references you can find in the 'Implementations and Samples' section of the TAP protocol doc http://wiki.membase.org/display/membase/TAP+Protocol

 

Bhawana

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Membase: http://www.membase.com/products-and-services/overview
Call or email "sales -at- membase -dot- com" today!

Top
  • Login or register to post comments
Tue, 12/21/2010 - 11:08
perry
Offline
Joined: 10/11/2010
Groups:

 We've also begun creating a C library for Membase (http://blog.membase.com/libmembase-c-interface-to-membase).  It's not C#, but maybe that helps for now?

 

Perry

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Couchbase: http://www.couchbase.com/products-and-services/overview
Call or email "sales -at- couchbase-dot- com" today!

Top
  • Login or register to post comments
Tue, 12/21/2010 - 11:15
mhsimkin
Offline
Joined: 12/10/2010
Groups: None

Perry, does the C library have support for TAP?  If so, where can I find the code to check out.  I might be able to port it to C#.  If not, I will probably have to develop my own C# TAP library.


Thanks


marc

Top
  • Login or register to post comments
Tue, 12/21/2010 - 11:16
perry
Offline
Joined: 10/11/2010
Groups:

 Yes it does, sorry I could have made that clearer.

 

Take a look at that blog post I sent over and let me know if that helps you.

 

Perry

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Couchbase: http://www.couchbase.com/products-and-services/overview
Call or email "sales -at- couchbase-dot- com" today!

Top
  • Login or register to post comments
Tue, 12/21/2010 - 11:28
mhsimkin
Offline
Joined: 12/10/2010
Groups: None

I ready the posting, it might work.  C to C# or unmanaged to managed code can be a pain.  I would need to look at the C library source to get an understanding if it is something I'm capable of making work.


Where can I found the source?


thanks


marc 

Top
  • Login or register to post comments
Tue, 12/21/2010 - 15:06
perry
Offline
Joined: 10/11/2010
Groups:

Here's a bit more info, including links to the source: http://trondn.blogspot.com/2010/12/building-libmembase.html

 

Perry

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Couchbase: http://www.couchbase.com/products-and-services/overview
Call or email "sales -at- couchbase-dot- com" today!

Top
  • Login or register to post comments
Thu, 01/06/2011 - 12:16
mhsimkin
Offline
Joined: 12/10/2010
Groups: None

Perry:


I was reading the documentation here: wiki.membase.org/display/membase/TAP+Protocol. I noticed that it explicitly states that TAP can only be used with membase buckets, not memcached buckets.  Is that still the case with the 1.6.4 release?


Is there any way to configure the membase bucket to not use a backing disk store?


thanks


marc

Top
  • Login or register to post comments
Thu, 01/06/2011 - 12:25
perry
Offline
Joined: 10/11/2010
Groups:

 Unfortunately, yes it is still the case and no you can't currently configure Membase to not use a backing store.  We've already got that as a feature request and I will add you interest to that.

 

Perry

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Couchbase: http://www.couchbase.com/products-and-services/overview
Call or email "sales -at- couchbase-dot- com" today!

Top
  • Login or register to post comments
Thu, 04/19/2012 - 07:14
rockster
Offline
Joined: 03/02/2012
Groups: None

@mhsimkin

have you had any progress with this ?

Top
  • Login or register to post comments
Wed, 06/20/2012 - 06:53
sundermagar
Offline
Joined: 06/20/2012
Groups: None

Hi,

I am new to CouchBase anyone can help me with this please...

PROBLEM:

I am using CouchBase C# client and storing the values; client.Get(ArrayOfKeys) and getting results as expected. I want to cast the result to C# Dictionary, KeyValuePair or ConCurrentDictionary or HashTable.

But, I get every time null value if I try to do this. Can anyone please guide me how we can cast the results of MemBase Client to any generic collection object in C#?

Regards,
Sunder

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