Here it is:

  var view = db.GetView("aview");
            view.SetMapReduce((IDictionary<string, object> document,
EmitDelegate emitter) => {
                if (document["_id"] != null) {
                    emitter(document["_id"], document["_id"]);

                }
            }, null, "1");
            return view;


On 1 September 2014 23:14, Jens Alfke <[email protected]> wrote:

>
> On Sep 1, 2014, at 1:33 AM, Sherry Ummen <[email protected]> wrote:
>
> I have tried view. But for the first time it was soo dead slow. And I have
> this experience that view remain stale sometimes.
>
>
> What does your view's map function look like?
>
> —Jens
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Couchbase Mobile" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/mobile-couchbase/_-BKrLd7Fek/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mobile-couchbase/BF4CA051-4919-4EC5-B4BB-B7AA21E1EC73%40couchbase.com
> <https://groups.google.com/d/msgid/mobile-couchbase/BF4CA051-4919-4EC5-B4BB-B7AA21E1EC73%40couchbase.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CABKw4GG-5%3DQmqEbkPE4NDpaC2p7HgZF-Zzyx0aRcWAqYJ_D_Rg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to