On Oct 7, 2011, at 6:59 PM, Pulkit Singhal wrote: 1) Does CouchDB mark existing rows in a view index as "invalid" for ALL of the following operations: add,delete, edit?
Yes. 2) For deletes: Is the info not added at the end of the B-tree for the view index? I’m not sure what you mean by “at the end”. See below. 3) Does CouchDB break out of its "append-only-model" if a document gets updated for a view index? Are the resulting new lines really inserted into the B-tree? Why the change in behavior? You’re mixing up two layers of abstraction: the b-tree itself, where we can talk about operations like “insertion” and “deletion”; and the file format, which is strictly append-only. So yes, changes do get inserted into or deleted from the b-tree. But at the file level, those operations are implemented only through appending to the file. —Jens
