couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anthony Ananich <anton.anan...@inpun.com>
Subject Re: view crashes chrome
Date Mon, 04 Mar 2013 06:11:24 GMT
You probably need to use 'skip' and 'limit'
http://wiki.apache.org/couchdb/HTTP_view_API#Querying_Options

On Mon, Mar 4, 2013 at 2:54 AM, Alexander Gabriel <alex@barbalex.ch> wrote:
> I have this view :
> function(doc) {
> if (doc.Gruppe && doc.Gruppe === "Flora" && doc.Typ && doc.Typ
===
> "Objekt") {
>  emit ([doc._id, doc._rev]);
> }
> }
>
> It fetches 7900 documents with about 65 MB.
>
> When I call it (from javascript) without the all_docs option, it runs o.k.
> With the all_docs option it crashes Chrome but not Firefox (both newest
> versions).
>
> I've isolated the crash to this line of code:
> $db.view('artendb/flora?include_docs=true"});
>
> I'v created a view that directly fetches all docs:
> function(doc) {
> if (doc.Gruppe && doc.Gruppe === "Flora" && doc.Typ && doc.Typ
===
> "Objekt") {
> emit ([doc._id, doc._rev], doc);
> }
> }
> It runs without problems in futon.
>
> I've tested a bunch of the documents contained in the view on
> http://jsonlint.com and they were all o.k.
>
> Is there a way to lint the entire 65 MB of data?
> What else could cause the crash in chrome?
> What would you do to crush this bug?

Mime
View raw message