Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | SDKs | SDKs

Observe on delete

1 reply [Last post]
  • Login or register to post comments
Wed, 02/06/2013 - 05:57
pantonis
Offline
Joined: 02/06/2013
Groups: None

I'm trying to delete a key from a bucket and then get all the keys using a view. Problem is that delete key is there. Apparently I get the deleted key because because views read from the disk and there is lag to delete the key on disk.
What I'm really looking for is to find a way to observe delete transaction using c#.

Thanks

Top
  • Login or register to post comments
Wed, 02/06/2013 - 09:21
john
Offline
Joined: 01/05/2012
Groups: None

There is an ExectuteRemove overload that supports durability checks (i.e., observe). For example, to remove a key and make sure it's been removed from disk on the master node for that key, add PersistTo.One as a parameter.

In the .NET Sample app I demonstrate this exact problem - https://github.com/couchbaselabs/beer-sample-net/blob/master/src/Couchba.... Though I see now that I need to update the remove API docs. I'll do that after posting this reply.

client.ExecuteRemove("foo", PersistTo.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