Hmm ok then I should try with View but one thing I don understand how to 
emit multiple properties?

Is it like this?

 view.SetMapReduce((IDictionary<string, object> document, EmitDelegate 
emitter) => {
               
                    emitter(document["_id"], document["_id"]);
                    emitter(document["version"], document["version"]);
                    emitter(document["type"], document["type"]);
               
            }, null, "1");

And regarding 90Mb data. Hmm yeah the data is huge I can't help it but hmm 
yeah I have been storing it like JSON data. Infact I can try using 
attachments. 

I am using couchdb with lite so that I can store huge data.

So that means attachment is treated somehow differently?

On Tuesday, 2 September 2014 22:36:02 UTC+5:30, Jens Alfke wrote:
>
>
> > On Sep 2, 2014, at 10:00 AM, Sherry Ummen <[email protected] 
> <javascript:>> wrote: 
> > 
> > But what I wanted is just few properties of the document but not full 
> document. 
>
> Then you should use a view instead, which emits only the properties you 
> need. In your query code, get those properties from the row's Value instead 
> of accessing the document. 
>
> What your current code is doing is reading/parsing every document in the 
> database one at a time. That's going to be slow. 
>
> > some of the document size is more than 90MB. 
>
> Including attachments or not? It's OK to have large attachments because 
> they're not read as part of the document. But 90MB of JSON in the document 
> body is much, much too large for good performance. (Did we talk about this 
> before? Maybe it was with someone else; but there are threads from the past 
> month talking about moving large data out of the document body.) 
>
> —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/9d5d3d63-cb8f-4eb2-aa4c-c4986bbcc944%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to