On 12/04/2021 11:07, Rob Vesse wrote:
Yes such a feature would be a valuable contribution. It's certainly something that other users have asked for. Your main issue is probably going to be verifying that there aren't open transactions against the old versions of the data, Andy might have some ideas/pointers to whether the internals of TDB2 allow for determining that?
There won't be any transactions on the old store - when compaction has finished, the system goes into "exclusive" mode to switch the active database from old to new.
By the time compaction returns, the old database is no longer used for anything (except for the Windows thing).
Andy
Rob On 09/04/2021, 18:08, "Brandon Sara" <brandon.s...@collectivemedicaltech.com> wrote: I would love it if we could have an automatic deletion option with the compact task, otherwise, a good amount of work can end up being needed just to ensure that a no longer needed `Data-****` folder is removed. Is this something that the maintainers are willing to consider? If so, I’d be willing to help with the implementation of it. Thanks. -- *NOTICES*: 1. **No PHI in Email**. Collective Medical policy prohibits sending protected health information by email, which may violate applicable law. If sending PHI is necessary, please contact me for secure delivery instructions. 2. **Confidentiality**. This message and any attachments may be confidential and proprietary. If you received this in error, please contact me immediately and delete this message.