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

How to clean data from membase

1 reply [Last post]
  • Login or register to post comments
Fri, 01/28/2011 - 14:09
fddayan
Offline
Joined: 12/28/2010
Groups: None

Hi all,

I want to be able to remove unused data from Membase.

I put data once and my web app access it. 

To give a litte bit of context is IP data, so if I do not see the ip in a month I want to remove it. I get the data from a different source,not the web.

I could use expiration but I do not want to get the data and then put the data with a new expiration time. 

Is there a way to remove unused data from membase? I would like to remove all the ip that I have not seen in a month

 

Thanks, 

 

Federico

Top
  • Login or register to post comments
Sun, 01/30/2011 - 15:21
perry
Offline
Joined: 10/11/2010
Groups:

 Hey Federico, there are actually a few different ways of doing this.

I would personally recommend using expiration since the server would take care of all the work for you, but it seems like you don't want to go down that route.

 

You can also use our TAP interface (http://wiki.membase.org/display/membase/TAP+Protocol) to periodically stream out all the keys from Membase, parse that list to determine which ones are old and then send a delete for each key.  There is an example script provided at /opt/membase/bin/ep_engine/management/tap.py that shows how this works for the default bucket.

 

You could also use key versioning to invalidate a whole group of keys, but I imagine that won't work here since some IP's will be very old and still be active correct?

 

Let me know if I can help further.

 

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
  • 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