couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roger Binns <>
Subject Re: _rewrite handler
Date Mon, 07 Dec 2009 05:05:36 GMT
Hash: SHA1

Chris Anderson wrote:
>> Read-only - of course you could add state to the object if you wanted
>> but it'd be cleared when the os process is restarted, which will
>> happen from time to time.

Of course the next feature request would be to make it possible to sync
changes back to the DB :-)  [No, I am not asking for that.  Yet.]

>> The big challenge here is striking the right balance. I'd like to have
>> the whole ddoc available to the map and reduce functions, but I don't
>> want to invalidate the indexes every time someone changes a show or or
>> list. I'll probably end up special-casing the views not to change
>> invalidation strategies for now.

You could probably make view compaction be a trigger.  For example if I was
storing functions elsewhere in the design doc and changed them but not the
view code using them then you'd have no way of knowing that change mattered.
 I'd be happy to do a view compaction or something similar to indicate that
what is currently stored is out of date.

Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla -


View raw message