On Jul 16, 2014, at 10:28 AM, Len Kawell <[email protected]> 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/8E05213E-B885-49E3-AA1D-6FF049B24189%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to