Hi, not knowing the internals of couchdb I may ask stupid question, so just ignore it if it's really stupid ;)
Using it I've noticed the re-index times take a time which comparable to the insertion off all the documents without using bulk inserts, while with bulk inserts the insert ionof documents is much faster. Instead in my idea, re-indexing should be as fast as fast bulk inserts, since when computing an index we don't need to do many fsyncs, but instead allow maximum caching before disk writes (with berkeley db for example, sustained write of data exceeding the memory cache are 100-1000x faster without syncs for each write). So, since I don't think that this relative slowness is due to fsyncs which is the main reason? (another hint which rules out fsyncs is that cpu is rather high and not in waiting state) -- Fabio Forno, Bluendo srl http://www.bluendo.com jabber id: [email protected]
