-
Notifications
You must be signed in to change notification settings - Fork 455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sql: provide documentation on row-level ttl workarounds #5647
Comments
@awoods187 any progression on this? |
We haven't prioritized the doc work here given the opportunity cost for other work. Do you want to make a case for increasing the prioritization? |
Here's a customer ticket related to needing better recommendations around batch deleting https://cockroachdb.zendesk.com/agent/tickets/5882 |
Some guidance on why and how to batch large writes would be great. For example, with Postgres you'd batch writes to avoid holding row-level locks on a huge number of rows for a long time, which would block other concurrent writes to those rows. By batching you reduce the max number of rows locked at any given time, and those locks are held for a shorter time-frame. I'm not sure if CRDB has similar behavior for large writes, but an explanation of this form would be great. |
Since @rohany's change that adds
|
Very nice
Sent from my iPhone
… On Aug 11, 2020, at 3:23 PM, Jordan Lewis ***@***.***> wrote:
Since @rohany's change that adds crdb_internal_mvcc_timestamp, we can recommend this pattern:
***@***.***:55288/defaultdb> delete from t where crdb_internal_mvcc_timestamp < 1597173188127148000.0000000000 LIMIT 10000;
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
We don't yet support row-level TTL. This feature is useful in that it cuts down on the effort developers need to take to delete and manage data.
In the meantime, we should document workarounds such as using cron jobs to periodically delete certain data in a performance first manner.
cc @rkruze who was asking about this.
The text was updated successfully, but these errors were encountered: