> On Feb 4, 2015, at 5:50 AM, Vinay Bhinde <[email protected]> wrote: > > I have read that it recommended that one should not emit whole document but > in this specific use case i need to emit the whole document.
You really shouldn't emit the whole document. Why do you need to in this case? > Now i have about 100 documents added to couchbase and when i query this view > for the very first time it goes and indexes it and takes about 5~6 seconds to > complete and give me a result. That's a very long time; it should not take that log. (I think I said that before.) Which platform does this occur on, and how big are your documents? Also, what version of CBL? I'm guessing that your documents are pretty big, so emitting the entire document is slow. > I also read that in native API there is some kind of parameter named > "indexUpdateMode" you can use while querying a view which can be used to > trigger index update asynchronously in background. What i want is that my > view indexes should be automatically updated after specified time interval > rather then being updated when queried. I can't find a way to do via REST API > for cblite. The CouchDB REST API for views has a "stale <http://docs.couchdb.org/en/latest/api/ddoc/views.html>" parameter for this, but I just looked at CBL code and we haven't implemented it. We should, though; I've filed an issue <https://github.com/couchbase/couchbase-lite-ios/issues/584>. —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/9FD09CB4-AAA7-40E9-9760-0BDB8678DFE7%40couchbase.com. For more options, visit https://groups.google.com/d/optout.
