-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Row-Level TTL docs to note full support
Fixes DOC-4756 Summary of changes: - Update 'Batch Delete Data with Row-Level TTL' page to note: - You can now do per-row TTL using `ttl_expiration_expression`, so we mention that and give examples, describe how it's validated - Remove at least the resolved limitations from the TTL docs and the 'Known Limitations' page - Remove uses of `ttl_automatic_column' which is no longer used in v22.2+ - Update 'WITH storage_parameter' page to use new output / TTL params - Update 'RESET storage_parameter' page to use new output / TTL params - Update included table of storage parameters to remove duplication of TTL params, instead linking to the canonical location on the TTL docs page
- Loading branch information
1 parent
c9c219b
commit 8cfdd63
Showing
6 changed files
with
139 additions
and
114 deletions.
There are no files selected for viewing
8 changes: 0 additions & 8 deletions
8
_includes/v22.2/known-limitations/row-level-ttl-limitations.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,2 @@ | ||
- You cannot use [foreign keys](foreign-key.html) to create references to or from a table that uses Row-Level TTL. [cockroachdb/cockroach#76407](https://github.com/cockroachdb/cockroach/issues/76407) | ||
- Any queries you run against tables with Row-Level TTL enabled do not filter out expired rows from the result set (this includes [`UPDATE`s](update.html) and [`DELETE`s](delete.html)). This feature may be added in a future release. For now, follow the instructions in [Filter out expired rows from a selection query](row-level-ttl.html#filter-out-expired-rows-from-a-selection-query). | ||
- <a name="ttl-cannot-be-customized"></a> The TTL cannot be customized based on the values of other columns in the row. [cockroachdb/cockroach#76916](https://github.com/cockroachdb/cockroach/issues/76916) | ||
- Because of the above limitation, adding TTL to large existing tables [can negatively affect performance](row-level-ttl.html#ttl-existing-table-performance-note), since a new column must be created and backfilled for every row. Creating a new table with a TTL is not affected by this limitation. | ||
- The queries executed by Row-Level TTL are not yet optimized for performance: | ||
- They do not use any indexes that may be available on the [`crdb_internal_expiration` column](row-level-ttl.html#crdb-internal-expiration). | ||
- They do not take into account [node localities](cockroach-start.html#locality). | ||
- All deletes are run on a single node, instead of being distributed. | ||
- For details, see [cockroachdb/cockroach#76914](https://github.com/cockroachdb/cockroach/issues/76914) | ||
- If you [override the TTL for a row by setting `crdb_internal_expiration` directly](row-level-ttl.html#set-the-row-level-ttl-for-an-individual-row), and the row is later updated (e.g., using an [`ON UPDATE` expression](create-table.html#on-update-expressions)), the TTL override is lost; it is reset to `now() + ttl_expire_after`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
CockroachDB has preview support for Time to Live ("TTL") expiration on table rows, also known as _Row-Level TTL_. Row-Level TTL is a mechanism whereby rows from a table are considered "expired" and can be automatically deleted once those rows have been stored longer than a specified expiration time. | ||
CockroachDB has support for Time to Live ("TTL") expiration on table rows, also known as _Row-Level TTL_. Row-Level TTL is a mechanism whereby rows from a table are considered "expired" and can be automatically deleted once those rows have been stored longer than a specified expiration time. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.