Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
A retention policy controls how long table data remains queryable.
A cache policy controls how much data stays in local SSD or RAM to improve query performance. Use these policies to balance data retention requirements, query speed, and storage cost.
In this article, you update retention and cache settings for a table in Azure Data Explorer by using the table retention policy wizard.
Prerequisites
- A Microsoft account or a Microsoft Entra user identity. You don't need an Azure subscription.
- An Azure Data Explorer cluster and database. Create a cluster and database.
- An Azure Data Explorer cluster and database. To set one up, see Create a cluster and database.
Define and assign a table retention policy
In the left menu of the Azure Data Explorer web UI, select the Data tab.
Alternatively, open the page directly by using the one-click table policy entry point.
In the Table retention policy tile, select Update.
The Table retention policy window opens with the Policy update tab selected.
Policy update
You can either inherit values from the database or set new values.
The Cluster and Database fields automatically populate. Select a different cluster or database from the drop-down lists, or add a cluster connection.
Under Table, select a table from the drop-down list.
Under Retention policy, toggle On to apply the retention policy values from the database to the table. To create or update a separate policy for the table, toggle to Off.
If you selected Off for a separate retention policy, enter values in the following fields:
Setting Default value Field description Recoverability Yes Turn on or turn off data recoverability. Retention period 365 The number of days that data is stored in long-term storage before it's deleted. The period is measured from when the data is ingested. Under Caching policy, toggle On to apply the caching policy values from the database to the table. To create or update a separate policy for the table, toggle to Off.
If you selected Off for a separate cache policy, enter values in the following fields:
Setting Default value Field description Data (days) 31 The number of days that frequently queried data is available in RAM or SSD storage where it can be rapidly accessed to optimize query performance. Index (days) 31 The number of days for indexed access to data stored in external storage. Select Update.
Review the update summary
In the Summary tab, all steps show checkmark icons when the update finishes successfully. The tiles under these steps give you options to explore your data by using Quick queries or to undo changes by using Tools.