couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Marca <jma...@translab.its.uci.edu>
Subject Re: how to clean up old versions of views
Date Mon, 09 Nov 2009 20:21:31 GMT
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?

James

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


Mime
View raw message