aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorilnaz <ilnaz@ydb.tech>2023-11-10 14:08:33 +0300
committerilnaz <ilnaz@ydb.tech>2023-11-10 15:53:24 +0300
commitd581c2702f3e0dfa2b16d8a74467c47dcda82eca (patch)
tree81388c5117bc4c86dc17f30c564777dccd079f6a
parent0bba3d04ec8de707cad0ed182ac4483d65006c65 (diff)
downloadydb-d581c2702f3e0dfa2b16d8a74467c47dcda82eca.tar.gz
Explain ttl unit
-rw-r--r--ydb/docs/en/core/concepts/datamodel/_includes/table.md8
-rw-r--r--ydb/docs/ru/core/concepts/datamodel/_includes/table.md2
2 files changed, 8 insertions, 2 deletions
diff --git a/ydb/docs/en/core/concepts/datamodel/_includes/table.md b/ydb/docs/en/core/concepts/datamodel/_includes/table.md
index e6a402e435..beb675136d 100644
--- a/ydb/docs/en/core/concepts/datamodel/_includes/table.md
+++ b/ydb/docs/en/core/concepts/datamodel/_includes/table.md
@@ -131,7 +131,13 @@ If there are multiple followers, their delay from the leader may vary: although
| Parameter name | Type | Acceptable values | Update capability | Reset capability |
| ------------- | --- | ------------------- | --------------------- | ------------------ |
-| `TTL` | Expression | `Interval("<literal>") ON <column>` | Yes | Yes |
+| `TTL` | Expression | `Interval("<literal>") ON <column> [AS <unit>]` | Yes | Yes |
+
+Where `<unit>` is a unit of measurement, specified only for column with a [numeric type](../../../concepts/ttl.md#restrictions):
+* `SECONDS`;
+* `MILLISECONDS`;
+* `MICROSECONDS`;
+* `NANOSECONDS`.
For more information about deleting expired data, see [Time to Live (TTL)](../../../concepts/ttl.md).
diff --git a/ydb/docs/ru/core/concepts/datamodel/_includes/table.md b/ydb/docs/ru/core/concepts/datamodel/_includes/table.md
index 57f02aab1b..6726ab2868 100644
--- a/ydb/docs/ru/core/concepts/datamodel/_includes/table.md
+++ b/ydb/docs/ru/core/concepts/datamodel/_includes/table.md
@@ -130,7 +130,7 @@ YDB поддерживает создание строковых и колоно
| ------------- | --- | ------------------- | --------------------- | ------------------ |
| `TTL` | Expression | `Interval("<literal>") ON <column> [AS <unit>]` | Да | Да |
-Где `<unit>`:
+Где `<unit>` — единица измерения, указывается только для колонок с [числовым типом](../../../concepts/ttl.md#restrictions):
* `SECONDS`;
* `MILLISECONDS`;
* `MICROSECONDS`;