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

Flushing the cache

4 replies [Last post]
  • Login or register to post comments
Tue, 07/10/2012 - 13:51
psinger
Offline
Joined: 07/10/2012
Groups: None

I have a few questions about flushing a bucket that I have not been able to answer via the documentation.

1. What is the best way to get rid of all records in Couchbase?

2. When flushing a bucket via the Java CouchbaseClient, does the flush method documented in the Java Client Manual flush ALL records from memory and disk or does it flush just the memory? The manual and JavaDoc says it "clears the cache on all servers", but that documentation is inherited from the MemcacheClient.

3. Section 1.8 in the manual talks about the REST api for flushing a bucket, which is disabled by default in version 1.8.1. However, it does not mention anything about the flush_all command from client libraries. Does the flush method in the Java client still work by default?

Top
  • Login or register to post comments
Tue, 07/10/2012 - 15:51
ingenthr
Offline
Joined: 03/16/2010
Groups:

With #1, the best way is actually to delete the bucket. Do be aware that there is an open issue that this is asynchronous, so you'll want to wait a little while before recreating the bucket.

With #2, that's the flush_all command and it would flush all data from the bucket, if the server would let it. We'll update the documentation.

With #3, the 'disabled by default' change in 1.8.1 applies to flush whether initiated through the web console or as a command issued by a client library.

Hope that helps!

Top
  • Login or register to post comments
Tue, 07/10/2012 - 16:42
psinger
Offline
Joined: 07/10/2012
Groups: None

That helps a lot. Thank you!

Top
  • Login or register to post comments
Thu, 10/25/2012 - 05:55
suhail
Offline
Joined: 10/25/2012
Groups: None

How does one enable "flush" in 1.8.1 so that the SDK can be used to flush the cache?

Top
  • Login or register to post comments
Mon, 12/10/2012 - 09:44
rsbjeremy
Offline
Joined: 12/05/2012
Groups: None

check out cbflushctl

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