couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephan Bardubitzki <step...@bardubitzki.com>
Subject Re: auto delete docs
Date Thu, 30 Aug 2012 16:01:16 GMT
Thanks Simon,

that's what I was thinking too, but have a problem to figure out how 
bulk delete should be implemented. Do you have some advise or code 
example on that?

Stephan


On 12-08-30 08:48 AM, Simon Metson wrote:
> You need to have a view keyed by expire_date and an external process (some cron script,
say) that queries that appropriately and makes the (bulk) delete of old docs.
> Cheers
> Simon
>
>
> On Thursday, 30 August 2012 at 16:44, Stephan Bardubitzki wrote:
>
>> I have a db with docs that have a field expire_date. I want to auto
>> delete those docs when expire_date has passed, but have no clue how to
>> do that.
>>
>> Any advise would be greatly appreciated.
>>
>> Thanks,
>> Stephan
>>
>>
>
>
> --------------------------------
> Spam/Virus scanning by CanIt Pro
>
> For more information see
> http://www.kgbinternet.com/SpamFilter.htm
>
> To control your spam filter, log in at
> http://filter.kgbinternet.com
>


Mime
View raw message