> On Feb 19, 2015, at 8:42 AM, Julio Albuquerque <[email protected]> 
> wrote:
> 
> I wonder if you can recover the entire document without having created a view,

We have API documentation 
<http://developer.couchbase.com/mobile/develop/guides/couchbase-lite/native-api/document/index.html#reading>
 that can answer these sorts of questions.

> and without accessing the properties one by one.

I’m not sure what you mean by “one by one”. When you get a document, the entire 
doc is loaded into memory (from JSON stored in the database), and property 
access is random-access after that.

If you’re finding that this is too slow, it’s because by accessing the 
.document property of the query row you’re issuing a database fetch for every 
document you look at. This is exactly the kind of performance issue that views 
help with — the value of an emitted row is stored directly in the index, so it 
takes no extra fetches to read it.

I don’t understand why you’re so reluctant to create a view.

—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/8A0ACA6E-C1DA-4574-9506-ABBF345CCA2E%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to