couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Davis <>
Subject Re: Why is CouchDB frequently re-indexing my views from scratch?
Date Thu, 18 Jun 2009 19:46:50 GMT
First place you might want to check is if its adding spaces or
newlines to the end of a view.

On Thu, Jun 18, 2009 at 3:42 PM, Damien Katz<> wrote:
> On Jun 18, 2009, at 3:32 PM, Jim Puls wrote:
>> On Jun 18, 2009, at 11:53 AM, Damien Katz wrote:
>>> On Jun 18, 2009, at 2:42 PM, Nadav Samet wrote:
>>>> Does the design doc change? Views are regenerated following any edit of
>>>> the
>>>> design doc that contains them.
>>> Yes, good question. Though one small correction, it's not just any edit
>>> of the design document, only a change to a view will trigger the reindexing.
>>> You can edit other parts of a design doc just fine.
>>> -Damien
>> It appears that every time my server restarts, CouchRest is re-saving the
>> design doc for its models. This brings up two questions:
>> 1. Should CouchRest be doing this? Should I find a way around it so that
>> the design docs don't get re-saved unless they change? I seem to recall that
>> previous versions took a hash of the view contents to avoid this very
>> problem.
>> 2. Should CouchDB be reindexing views that were re-saved, unchanged from
>> their previous content?
> I don't know what CouchRest is doing, but CouchDB does check for changes in
> the view, not just that the view design doc changed. It's always possible
> there is a bug in the view indexer, but I'm betting it's CouchRest modifying
> a view definition.
> -Damien

View raw message