Is it possible to have a view that contains only orphaned documents? In 
other words, a view that is a collection of documents that are not 
referenced by any others.


Example: DocType="Book" is the parent with many DocType="Page" children. 
How do you create a view of only those Books which have no Pages ---- 
without using an array of Pages within the Book doc.


Normally, when the last page is deleted, the Book doc will also 
automatically be deleted. *** However, if something goes wrong in the 
deletion process, a background cleanup function must go find all the 
orphaned books without pages and delete them.


How might this cleanup view be written (without using an array of pages 
within the Book doc.)?


-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to