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

How to delete the bucket?Delete/insert/Set/Get data from the given bucket in libmemcached ?

4 replies [Last post]
  • Login or register to post comments
Mon, 11/28/2011 - 03:01
scotthuang2008
Offline
Joined: 11/04/2010
Groups: None

We have some data to be delete per day , and reloaded it from DB. Millions of the records .To delete the bucket may be the fastest way .
Is there anyone could tell me how to do this in libmemcached? We do not konw the way to do this .And thanks for any documentation or demo.

Top
  • Login or register to post comments
Tue, 11/29/2011 - 21:47
mikew
Offline
Joined: 03/14/2011
Groups:

Deleting a Membase bucket is not possible with libmemcached. What you want to do is use the Membase Command Line Interface. Check out the documentation here and if you have any other questions let us know.

http://www.couchbase.org/wiki/display/membase/Membase+Command-line+Inter...

Top
  • Login or register to post comments
Wed, 11/30/2011 - 19:25
scotthuang2008
Offline
Joined: 11/04/2010
Groups: None

Thanks for you reply ,mikew.
Maybe the requirement is abnormal.
But to batch delete data from membase may be a good idea.
I am not sure whether a newly client for membase to support the newly membase features is needed.Currently , the client to connect to membase such as libmemcached ,memcachedClient ,spymemcached ,xmemcached are for memcached , is that a plan to develop new interfaces for the new features of membase?

Top
  • Login or register to post comments
Wed, 11/30/2011 - 19:30
mikew
Offline
Joined: 03/14/2011
Groups:

Spymemcached actually currently has all of the new Membase and Couchbase features in it. If you are using C then we will also release a libcouchbase version soon that has all of the new features as well. With that said there are no plans to include support for things like deleting and creating buckets. The reason is that operations like these are considered cluster management operations. I'm curious why you need to delete all of the data in a bucket? This isn't something that users typically do.

Top
  • Login or register to post comments
Wed, 11/30/2011 - 19:57
scotthuang2008
Offline
Joined: 11/04/2010
Groups: None

In fact , there are some user info data from the db may be updated,deleted or insert from the other systems and also some data should not be delete before get from client applications.
The worse is the systems is not maintained by us . We are not authorized to change any code of the systems .We have to change so much codes even if we have the privilege.

In my opinion , to store the user info data in a buskct1 and the other data in another bucket2.When we needed to update the user info data , we can delete the bucket1 and then reload it from db.The other data are always still there except for other client applications delete the data by key .We want to do it in this way just because it does not cost so much time .

And if it is not supported , we just delete the user info by key one by one .

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