You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Brad King <br...@gmail.com> on 2008/07/08 15:58:29 UTC
Cleanup of design docs
After deleting a design document, the index file still exists on disk
even after database compaction. Is it on the roadmap to clean these up
when a compaction occurs?
Re: Cleanup of design docs
Posted by Damien Katz <da...@apache.org>.
I could be wrong, but I think if you try to access the deleted view,
it will trigger it to delete the actual index file
Whenever it does or not do that now, eventually couchdb views will
have a daemon to update indexes and to do housecleaning, compacting
and deleting views indexes automatically. In the meantime you can
delete the view index files via the OS. This is also a poor-man's
compaction, as couchdb will rebuild deleted indexes usually smaller
than before.
-Damien
On Jul 8, 2008, at 10:10 AM, Jan Lehnardt wrote:
>
> On Jul 8, 2008, at 15:58, Brad King wrote:
>
>> After deleting a design document, the index file still exists on disk
>> even after database compaction. Is it on the roadmap to clean these
>> up
>> when a compaction occurs?
>
> Yeah this is on the roadmap. Indexes don't yet get compacted.
> Damien, what's the desired behaviour here? Deleting indexes when
> the associated design document gets deleted or only during
> compaction?
>
> Cheers
> Jan
> --
Re: Cleanup of design docs
Posted by Chris Anderson <jc...@grabb.it>.
On Tue, Jul 8, 2008 at 7:10 AM, Jan Lehnardt <ja...@apache.org> wrote:
> Damien, what's the desired behaviour here? Deleting indexes when
> the associated design document gets deleted or only during
> compaction?
I've been saved a few times by the fact that the indexes don't get
deleted when a design doc is changed or deleted. If I accidentally
overwrite a design doc with changes, but revert it before the next
query, there is no costly view rebuild. So I'd favor something that
happens at compaction time rather than at design doc modification
time.
--
Chris Anderson
http://jchris.mfdz.com
Re: Cleanup of design docs
Posted by Jan Lehnardt <ja...@apache.org>.
On Jul 8, 2008, at 15:58, Brad King wrote:
> After deleting a design document, the index file still exists on disk
> even after database compaction. Is it on the roadmap to clean these up
> when a compaction occurs?
Yeah this is on the roadmap. Indexes don't yet get compacted.
Damien, what's the desired behaviour here? Deleting indexes when
the associated design document gets deleted or only during
compaction?
Cheers
Jan
--