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 "FrequentlyAskedQuestions" by JanLehnardt
Date Thu, 23 Oct 2008 15:53:29 GMT
Dear Wiki user,

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

The following page has been changed by JanLehnardt:
http://wiki.apache.org/couchdb/FrequentlyAskedQuestions

The comment on the change is:
add note about slow view builds

------------------------------------------------------------------------------
    * [#i_can_has_no_http Can I talk to CouchDB without going through the HTTP API?]
    * [#update_views_more_often I want to update my view indexes more often than only when
a user reads it. How do I do that best?]
    * [#secure_remote_server I use CouchDB on a remote server and I don't want it to listen
on a public port for security reasons. Is there a way to connect to it from my local machine
or can I still use Futon with it?]
- 
+   * [#slow_view_building Creating my view index takes ages, WTF?]
  
  If you have a question not yet answered in this FAQ please hit the edit button and add your
question at the end. Check back in a few days, someone may have provided an answer.
  
@@ -143, +143 @@

  Now you can connect to the remote CouchDB through
  http://localhost:5984/
  
+ [[Anchor(slow_view_building)]]
+ == Creating my view index takes ages, WTF? ==
+ 
+ A couple of reasons:
+ 
+ 1) If you have a lot of documents or lots of large documents (going into the millions and
Gigabytes of data, the first time a view index is created just takes the time it is needed
to run through all documents.
+ 
+ 2) If you use the `emit()`-function in your view with `doc` as the second parameter you
effectively copy your entire data into the view index. This takes a lot of time. Consider
rewriting your `emit()` call to `emit(key, null);` and query the view with the `?include_docs=true`
parameter to get all doc's data with the view without having to copy the data into the view
index.
+ 
+ 3) You are using Erlang release R11B (or 5.5.x). Update to at least R12B-3 (or 5.6.3).
+ 

Mime
View raw message