lpcy commented on issue #5090:
URL: https://github.com/apache/couchdb/issues/5090#issuecomment-2172855644

   > Ah, that makes sense, thank you for clarifying.
   > 
   > If you don't need to keep deleted documents, as you never replicate, you 
can use the [purge](https://docs.couchdb.org/en/stable/api/database/misc.html) 
endpoint. The main downside to keeping them is the disk space they will 
continue to occupy. This is quite small (assuming you used the DELETE method 
which also empties the document body) but it is not zero.
   > 
   > Alternative strategies;
   > 
   > 1. if your data is temporal/time-based, you could make a database for 
distinct time periods (say, monthly), and when your oldest database contains 
only deleted documents you simply delete the entire database.
   > 2. periodically replicate the database to a new database but with a filter 
that rejects deleted documents, then switch usage to the new database.
   
   Thank you again for your answer, I've got it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to