Hello we want to have an asynchronous materialized...
# questions-and-troubleshooting
j
Hello we want to have an asynchronous materialized view, but we don't want data in the materialized view to be deleted, when old data in the driving table is deleted. The driving table contains raw data and the materialized view aggregates the data. We want to keep the aggregated data in the materialized view for many years, but can only afford to keep the raw data for one year. Is this possible?
a
Currently, you need to for two separate tables instead of materialized view.
j
Thanks a lot for the confirmation Allen.
Would this property not enable what I am looking for?
Copy code
auto_refresh_partitions_limit: The number of most recent materialized view partitions that need to be refreshed when a materialized view refresh is triggered.
a
auto_refresh_partitions_limit
is used for iceberg/hive external table.
j
Okay it is listed here on the page for materialized view. I don't see anywhere that it is specifically for external tables. https://docs.starrocks.io/docs/using_starrocks/async_mv/feature-support-asynchronous-materialized-views/#properties Anyways, in our case the raw data would indeed be an external table. So I hope it can work out.
a
Yes, it needs to be clear.