couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin R. Coombes" <kevin.r.coom...@gmail.com>
Subject Re: view crashes chrome
Date Mon, 04 Mar 2013 14:17:52 GMT
Actually, you are probably better off use "startkey" and "limit" rather 
than "skip".

On 3/4/2013 12:11 AM, Anthony Ananich wrote:
> 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