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

Can you use a view to delete records produced from emit?

1 reply [Last post]
  • Login or register to post comments
Mon, 01/28/2013 - 12:19
brettharrison
Offline
Joined: 08/07/2012
Groups: None

I was wondering if there is a way to delete records produced from a view?

Top
  • Login or register to post comments
Tue, 01/29/2013 - 01:36
tgrall
Offline
Joined: 09/05/2012
Groups: None

Hello,

Not it is not possible to "delete" data in a view. Remember that the map function is executed when the data are store on the disk.

So what you should do is:
- query the view (call the view)
- delete the document using the standard remove operation using the key returned by the view

Regards

__________________

Tug
@tgrall

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