CPC G06F 16/2379 (2019.01) [G06F 16/2228 (2019.01); G06F 16/288 (2019.01)] | 20 Claims |
1. A computer-implemented method for managing a time series database, the computer-implemented method comprising:
receiving, by one or more computer processors, an indication to remove one or more data in a shard of a time series database;
updating, by one or more computer processors, a metadata index associated with the time series database to indicate a soft removal of each data of the one or more data;
updating, by one or more computer processors, a data hole index associated with the soft removal within the time series database to indicate a first data hole at a first location created in the time series database by the soft removal of a first data of the one or more data, wherein the first data hole may be located using the data hole index without traversing the shard; and
responsive to an input/output rate for the time series database being below a threshold, filling, by one or more computer processors, the first data hole with data from a stored location within the shard that matches the size of the first data hole as determined from the metadata index, and storing the stored location as the first data hole in the data hole index.
|