---
sourceDocument: Xanadu ServiceNow AI Platform Administration
sourceDocumentLink: https://www.servicenow.com/docs/r/xanadu/platform-administration

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu ServiceNow AI Platform Administration

ft:clusterId :

    - platadm

bundleId :

    - platadm

workflow :

    - Platform


---

# Database rotation

# Database rotation {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Database rotation involves managing table size growth and archiving old
data.
Instance data grows quickly, and as these tables grow in size they require management. Database rotation preserves instance performance and averts risk associated with querying growing data sets utilizing three techniques. These techniques are based on the concept of managing large quantities of data by separating whole sets into individual tables. After this task is performed, each technique handles data in a different manner:

* Table Rotation works by rotating among a small set of tables, and deleting and reusing the old tables for new data.
* Table Extension works by periodically starting a new table and allowing old tables to be easily archived and removed from the system.
* Table Sharding works by enabling records to be grouped in a single table by document ID.
{#c_DatabaseRotation__ul_khb_p1q_z4}
{#c_DatabaseRotation__table_n4k_qbq_z4__entry__2}

| Functionality | Tables applied to |
|-|-|
| Table Rotation | `syslog` `sys_querystat` `ecc_queue` `ecc_event` `cmdb_metric` `sysevent` |
| Table Extension | `sys_email` |
[Table 1. Database Rotation]

{#c_DatabaseRotation__table_n4k_qbq_z4}

## Table rotation and extension {#c_DatabaseRotation__section_u4w_hbd_m1b}

The Table Rotations module allows you to define a new table rotation, a new table extension, a new table shard, or modify an existing one. You can access a list of table rotations on your instance by navigating to AllSystem DefinitionTable Rotations.  
Figure 1. Table rotation groups

* Name: auto-generated from table name
* Duration: overall time parameter for function
* Initialized: sets function as active (true) or inactive (false)
* Rotations: number of tables to be created within Duration
* Type: indicates Extension (archiving), Rotation (deletion), or Shard (doc ID) functionality
{#c_DatabaseRotation__ul_nxn_ndq_z4}

When you define a new rotation, a schedule is created and new data is subsequently written to
one of the tables in the rotation group. You will notice the that the group includes the
original table plus a number of additional tables. Be aware that deleting a rotation will delete
the additional tables and all the data, therefore the rotation should not be deleted if the data
is needed.
* **[Activate database rotation](https://www.servicenow.com/docs/GexpYVPgoXQP4hYWrsTf_Q)**   
  Learn how to activate database rotation.
* **[Table rotation](https://www.servicenow.com/docs/3FbqDhN5I9pprdv9u1yACA)**   
  Optimize performance and manage data lifecycle by rotating tables, allowing older data to be systematically archived while maintaining system efficiency.
* **[Table extension](https://www.servicenow.com/docs/f3m6RNOxGHFk1tzAMyeDKg)**   
  Partition and preserve data sets for extended periods without overwriting.

*[\>]: and then


