couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Couchdb Wiki] Update of "Performance" by JulianStahnke
Date Fri, 12 Mar 2010 18:38:26 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The "Performance" page has been changed by JulianStahnke.
http://wiki.apache.org/couchdb/Performance?action=diff&rev1=2&rev2=3

--------------------------------------------------

  
  == Erlang implementations of common JavaScript functions ==
  
- If you’re using a very simple view function that only performs a sum or count reduction,
you can call native Erlang implementations of them by simply writing "_sum" or "_count" in
place of your function declaration. This will speed up things dramatically, as it cuts down
on IO between CouchDB and serverside JavaScript. For example, as [http://mail-archives.apache.org/mod_mbox/couchdb-user/201003.mbox/%3c4B6B743F-A2B0-4A7F-94EB-A6FA886D396F@gmail.com%3e
mentioned on the mailing list], the time for outputting an (already indexed and cached) view
with about 78,000 items went down from 60 seconds to 4 seconds.
+ If you’re using a very simple view function that only performs a sum or count reduction,
you can call native Erlang implementations of them by simply writing "_sum" or "_count" in
place of your function declaration. This will speed up things dramatically, as it cuts down
on IO between CouchDB and serverside JavaScript. For example, as [http://mail-archives.apache.org/mod_mbox/couchdb-user/201003.mbox/%3c5E07E00E-3D69-4A8C-ADA3-1B20CF0BA4C8@julianstahnke.com%3e
mentioned on the mailing list], the time for outputting an (already indexed and cached) view
with about 78,000 items went down from 60 seconds to 4 seconds.
  
  Example:
  

Mime
View raw message