> On Dec 4, 2014, at 6:30 AM, Ami Kapadia <[email protected]> wrote:
> 
> Is there any way to return after successfully emit one record and jump to 
> next record in view in CouchBaseLite?

Just use the "return" statement.

There's no such thing as "jumping" to another document. The map function is 
called separately for each document in the database (and it might be called in 
parallel on multiple documents at once on different threads; that's an 
implementation detail.)

The map function's job is simply to specify what data of a document should be 
indexed into the view. It only looks at one document at a time. Does that help 
clarify things?

—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/C8333D4A-4417-45AD-850F-02EE14EB802C%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to