Skip to content

Commit 1127d96

Browse files
committed
Touch up wording
1 parent b7078f9 commit 1127d96

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

documentation/concept/ttl.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@ This feature works as follows:
1818
4. QuestDB detects a stale partition and drops it as a part of the commit
1919
operation
2020

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.
2626

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:
2829

2930
```sql
3031
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');
8283
| 2025-01-01 09:59:59.000000 |
8384
| 2025-01-01 10:00:00.000000 |
8485

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

Comments
 (0)