Finally I had the time to investigate a little on this issue.
What I want to do is this:
- Insert documents (via bulk_save)
- after 1,000 documents have been added, call one of the views of my
design document in order to get it indexed.
What I am seeing though is:
- storing the documents works just fine
- "curl http://localhost:5984/_active_tasks" shows this:
[{"type":"View Group Indexer","task":"docinsider_test _design/
docstore","status":"Processed 449 of 1000 changes
(44%)","pid":"<0.8743.0>"}]
- "curl http://localhost:5984/test" shows this:
{"db_name":"test","doc_count":3001,"doc_del_count":0,"update_seq":
3001,"purge_seq":0,"compact_running":false,"disk_size":
5375964,"instance_start_time":"1247490668343164"
The corresponding view file (test.view) is 468M.
- calling the view takes hours! at the moment: _1_ document every 5
seconds!
From the logs I cannot say that much except than it is spawning a new
group server for the view group. Log level is at "debug"
I am running on:
CouchDB: 0.9.1 (from the svn branch)
Erlang: 5.6.5 OTP: R12B5
Spidermokey: 1.8.1.16
OS: Ubuntu Jaunty (9.04) (everything 64bit).
Any help much appreciated!
Daniel