couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Kocoloski <kocol...@apache.org>
Subject Re: how to clean up old versions of views
Date Mon, 09 Nov 2009 19:18:08 GMT
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


Mime
View raw message