-
Notifications
You must be signed in to change notification settings - Fork 21
Description
I have an use cases that there is a specific amount of data I'd like to keep for each sensor, and delete the oldest records accordingly, essentially keeping just the newest records at all times.
For example:
10 sensors
1 snapshot per sensor every 5 seconds
cleanup every 6 hours
=
43200 old records deleted every 6 hours
As I understand it, and correct me if I am wrong, delete markers are only compacted through a major compaction, so if I wanted to delete this many records without slowing down the database considerably through the tx. files it creates, I'd need to major compact where I'd normally do a minor compaction.
As opposed to if I wanted to add 43200 records, I could just keep minor compacting it together without any performance issues and do a major compact once there are enough tx.files in the db folder.
Is there something I am misunderstanding about deletions or is there no way to compact these aside from a major compaction?