> On Feb 9, 2015, at 3:46 PM, Seung Chan Lim <[email protected]> wrote: > > Is there any more efficient way of fetching such hierarchical data?
There are some “fake join” techniques, but they wouldn’t work across two levels of indirection like your example. In a fake join you create a view that contains rows from both types of documents, and you design the keys so that the rows for a parent and children are adjacent; then you can either query normally and get the parent and children, or you can use grouping to aggregate info about them. I covered this in an “Advanced Couchbase Lite” talk I gave at the Couchbase conference last year; you can find video of it online. —Jens -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/43086779-A90A-4CC3-9B02-F195B1282997%40couchbase.com. For more options, visit https://groups.google.com/d/optout.
