You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tsdb.PruneTimeSeries issues a DeleteRange request for every time series name it encounters regardless of whether there is any data to delete. It seems possible to enhance tsdb.findTimeSeries to only return time series which have data that needs to be pruned. When seeking to the next time series name we could "back up" (using rocksdb.Iterator.Prev) to find the oldest key for the previous time series and determine if any data needs to be deleted.
The text was updated successfully, but these errors were encountered:
Discovered while investigating #10409.
tsdb.PruneTimeSeries
issues aDeleteRange
request for every time series name it encounters regardless of whether there is any data to delete. It seems possible to enhancetsdb.findTimeSeries
to only return time series which have data that needs to be pruned. When seeking to the next time series name we could "back up" (usingrocksdb.Iterator.Prev
) to find the oldest key for the previous time series and determine if any data needs to be deleted.The text was updated successfully, but these errors were encountered: