Hi there,
I have a couple of unrelated views performance questions:
- Is there a performance penalty to define a view with many equal keys? For example, this map function:
function (doc, meta) {
if(meta.expiration != 0)
emit(1, null);
}
-
Is there a performance drawback to store a development view design document on the production server? Shouldn’t it be removed after the publishing the views into production?
-
When a new view is added to a design document and it is being published, it seems that also the existing view(s) of that design document will be re-created, even though their definition hasn’t been changed. Is this a correct impression (we’re speaking about the Couchbase 2.2 Server here).
-
I have the impression that after reaching some threshold in the disk queue size, Couchbase would stop accepting get/set commands until the situation relieves again. Is this some fixed threshold that I could monitor and change my code accordingly? As a background of the question: I had a script that would set TTL of several millions documents using a “multi” variant of touch. The first run of the script has brought the whole Couchbase completely down, presumably by overfilling the disk queue.
Thanks and best regards,
Maxim