open-metadata / OpenMetadata

OpenMetadata is a unified metadata platform for data discovery, data observability, and data governance powered by a central metadata repository, in-depth column level lineage, and seamless team collaboration.
https://open-metadata.org
Apache License 2.0
5.51k stars 1.04k forks source link

[Perf] Create Partition for Change_event #15474

Open mohityadav766 opened 8 months ago

mohityadav766 commented 8 months ago

Affected module Does it impact the UI, backend or Ingestion Framework? The change_event table grow very fast and the entries can be huge in the table. We should create partition for that table based on time if the entries are 7 days , 15 days and 30 days cc @harshach (need accurate information here what timeline partition to create?) Then the user can remove this partitions.

Describe the bug A clear and concise description of what the bug is.

To Reproduce

Screenshots or steps to reproduce

Expected behavior A clear and concise description of what you expected to happen.

Version:

Additional context Add any other context about the problem here.

harshach commented 3 months ago

@mohityadav766 @Siddhanttimeline Lets build the retention policy app , I think @sushi30 looking into it. We should make that as a retention policy and delete the events that older than 3 days by default and allow users to change it. In future we can provide an option to write to another table as a archival