Tags keys for easy removal?
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?
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.