> On Sep 13, 2014, at 5:10 PM, James Norman <[email protected]> wrote: > > 2 things to note that I'm not positive about, one the emitter emits the > document
You shouldn't do this, in general. The map function should emit only the values you'll need when you run the query, or null if you don't need them. Emitting the whole document makes the view index a lot larger, and adds a lot of JSON parsing overhead as each row is fetched. > I have to call queryRow.getDocument().getProperties() If you need performance, avoid dereferencing the document. It results in another database fetch per row. Instead use the properties you need from the emitted value. —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/92807945-579F-45EA-AA49-F3172AC1ADD4%40couchbase.com. For more options, visit https://groups.google.com/d/optout.
