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

Tags keys for easy removal?

1 reply [Last post]
  • Login or register to post comments
Tue, 11/20/2012 - 07:47
bunal
Offline
Joined: 11/20/2012
Groups: None

Hi,

I have a question that i need to find some answers. I have made some searches but could not find the answer.

Is it possible to tags membase storage objects with keys so they can be found later with ease.

For example i have several model methods related to product A. I am storing them in diffent membase objects as:

"producta-method1", "producta-method2", "producta-method3"

Lets say when the product A is deleted from the mysql i just want to delete objects with keys above. I do not want to store a custom reference object so it is possible to tag membase storage objects with tags like "producta" for all the keys above and then when product A is deleted easy say smthing like "delete all storage keys with tag "Product A" ?

Is this possible?

Top
  • Login or register to post comments
Mon, 11/26/2012 - 21:37
Frank
Offline
Joined: 06/28/2010
Groups: None

In Couchbase Server 2.0 you can create indexes on document contents. So you can have a tag as part of the JSON document and then do a queryto find all the documents that contain that tag. Membase 1.x and Couchbase Server 1.8.x are pure KV stores, so no indexing or querying; sorry.

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