@@ -18,13 +18,14 @@ This feature works as follows:
18
18
4 . QuestDB detects a stale partition and drops it as a part of the commit
19
19
operation
20
20
21
- To be more precise, the latest timestamp stored in a given partition does
22
- not matter. QuestDB considers the entire time period a partition for which it is
23
- responsible. As a result, it will drop the partition when the end of that period
24
- falls behind the TTL limit. This is a compromise that favors a low overhead of
25
- the TTL enforcement procedure.
21
+ To be more precise, the latest timestamp stored in a given partition does not
22
+ matter. Instead, QuestDB considers the entire time period for which a partition
23
+ is responsible. As a result, it will drop the partition only when the end of
24
+ that period falls behind the TTL limit. This is a compromise that favors a low
25
+ overhead of the TTL enforcement procedure.
26
26
27
- To demonstrate, assume we create a table partitioned by hour, with TTL set to one hour:
27
+ To demonstrate, assume we have created a table partitioned by hour, with TTL set
28
+ to one hour:
28
29
29
30
``` sql
30
31
CREATE TABLE tango (ts TIMESTAMP ) timestamp (ts) PARTITION BY HOUR TTL 1 HOUR;
@@ -82,4 +83,4 @@ INSERT INTO tango VALUES ('2025-01-01T10:00:00');
82
83
| 2025-01-01 09:59:59.000000 |
83
84
| 2025-01-01 10:00:00.000000 |
84
85
85
- Now the whole "8 AM" partition is outside its TTL limit. It is then dropped.
86
+ Now the whole "8 AM" partition is outside its TTL limit, and has been dropped.
0 commit comments