Sitelet https://github.com/Altinity/clickhouse-sink-connector/issues/1326
Skip to content

Proposal: TTL calculation based on field _valid_from for fact tables, with version history enabled #1326

Description

@Cong-Ye

In data warehouse concepts, there may be two table types: fact tables and dimension tables.

The dimension table size is relatively small, so we can and must persist the latest version of every record, for lookup purpose. So it's OK to add TTL based on _valid_to.
But for fact tables, the table size is usually huge and most likely the records won't be updated after inserted. So if the TTL is still based on _valid_to, no records would be purged and the table grows infinitely.
So it's suggested to add TTL based on _valid_from, to purge old data for fact tables.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions