couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Friesen <>
Subject Re: using mutliple cores for view computation
Date Fri, 20 Mar 2009 07:05:32 GMT
JavaScript is single-threaded, views are written in JavaScript thus a 
view can only make use of a single core.

On the positive side, it does mean that while doing a view, you still 
have the cpu power to handle two other views, and handle couch requests 
with dedicated cores.

~Daniel Friesen (Dantman, Nadir-Seen-Fire)

Anand Chitipothu wrote:
> I have created a new couchdb database on a quad-core machine, loaded
> the database with 30 million documents and created a view.
> I accessed the view for the first time, to start the view computation.
> From whatever I can see from the output of top command, beam.smp is
> taking around 70% of cpu and couchjs around 30%.
> Shouldn't the view computation process use all the 4 cores for doing
> the computation?
> Thanks,
> Anand

View raw message