couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aurélien Bénel <aurelien.be...@utt.fr>
Subject Re: Question on selecting on reduce values
Date Fri, 28 May 2010 10:00:24 GMT
Hi everyone,

> function(head, req) {
>     var row ;
>     while (row = getRow()) {
>         if (row.value > 1){      
>       send(row.key + "\n") ;    
>     }  
>   }
> }

I have used a similar solution for a similar problem. However I got a real performance issue
with it. 

When I query the list (on the cached view), I get 400 items in 13s.
I thought it was my list's fault so I tried to query the (cached) view directly and I got
7000 items in 16s.

Any idea of where the bottleneck is? Does the list get the view through the network?


Regards,

Aurélien 
Mime
View raw message