couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Lehnardt <...@apache.org>
Subject Re: how to clean up old versions of views
Date Tue, 10 Nov 2009 12:03:23 GMT

On 9 Nov 2009, at 21:21, James Marca wrote:

> On Mon, Nov 09, 2009 at 02:18:08PM -0500, Adam Kocoloski wrote:
>> On Nov 9, 2009, at 2:14 PM, James Marca wrote:
>> 
>>> Hi again,
>>> 
>>> I thought I remembered seeing on the wiki how to clean up old views in
>>> a database, but I can't seem to find it.
>>> 
>>> I have a database in which I was testing lots of variations of a
>>> map/reduce pair, and now I want to clean up the ones that I'm no
>>> longer using.  Simply compacting the database didn't work.  I can use
>>> filesystem commands to do so, but is there a compact_views type of
>>> command that will delete old views?
>>> 
>>> my version of coucdb is
>>> 
>>> {"couchdb":"Welcome","version":"0.11.0b1e2a54d1-git"}
>>> 
>>> 
>>> Thanks,
>>> James Marca
>> 
>> Heh, so there is a compact views feature
>> 
>> POST /dbname/_compact/designname
>> 
>> but that doesn't actually clean up old versions of the view, it just  
>> compacts the current one.  You want
>> 
>> POST /dbname/_view_cleanup
>> 
>> Best, Adam
> Thanks, that did it.  Can I add this to the wiki?

yes please :)

Cheers
Jan
--


Mime
View raw message