Design Template for the Expiration of Documents on a Cloudy

Therefore, when a document is deleted, metadata is actually retained forever. For a hosted service such as cloudant, where the storage costs are every month, instead I would like to completely clear the deleted documents.

I read somewhere about a design pattern in which you use dbcopy in a view to put documents in the "current" db, and then periodically delete the expired dbs. But I can not find the article, and I do not quite understand how the database name will work. How would cloud clients always know the "current" database name?

+4
source share
2 answers

Cloudant _purge ( ).

validate_document_update, . ( ​​ ), . , , "" .

, , : , , - Cloudant. , , .

+5

couchdb. . ,

{_id:234wer,_rev:123,deleted:true}

, , . , , , .

_ purge, , , .

+1

Source: https://habr.com/ru/post/1535128/


All Articles