Skip to content
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

Add TTL to materialized views in ClickHouse #193

Closed
kamilkisiela opened this issue Jun 28, 2022 · 1 comment · Fixed by #304
Closed

Add TTL to materialized views in ClickHouse #193

kamilkisiela opened this issue Jun 28, 2022 · 1 comment · Fixed by #304
Assignees

Comments

@kamilkisiela
Copy link
Owner

Use toDate(expires_at) in the SummingMergeTree + add it to ORDER BY.
Do it with MODIFY.

Think about:

  • running OPTIMIZE to delete expired rows.
  • old rows without expires_at column
@kamilkisiela kamilkisiela self-assigned this Aug 1, 2022
@kamilkisiela
Copy link
Owner Author

#302

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Q3 2022 – Jul-Sep
Development

Successfully merging a pull request may close this issue.

1 participant