Hmm, I just updated to this new code and all of a sudden, none of my CBLQuerys are returning any rows. I haven't changed anything else in my database. Is there something new that I need to do with these changes.
On Wednesday, July 16, 2014 11:37:20 AM UTC-7, Jens Alfke wrote: > > > On Jul 16, 2014, at 10:28 AM, Len Kawell <[email protected] <javascript:>> > wrote: > > It's very helpful to know about not emitting doc. Assuming that I change > to emitting nil, how does the efficiency of CBLQuery.prefetch = YES plus > CBLQueryRow.documentProperties compare with CBLQueryRow.document? > > > Pretty much identical. The .document accessor will use the > documentProperties from the prefetch (if available) to populate the > CBLDocument, so there won’t be a second db lookup. > > There could be a difference if you only end up using *some* of the query > rows’ documents. In that case it could be more efficient to turn off > prefetch and just use .document, because it’ll only be loading the bodies > of the documents that you need, instead of all of them. > > —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/7fdf6b96-5d06-441e-b9e0-6f76341fb91c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
