Slow performance on a ServiceNow instance can be caused by table growth, and one fix is to move or remove old records with the lifecycle tool that suits each table. The main options are archiving rules, the Table Cleaner and table rotation, plus one-off cleanups for work that will not repeat. Picking the right one depends on what the table holds and how long people still need its rows.
Why table growth makes an instance feel slow
Many slow pages are not slow because of the page itself. A list view, a report or a scheduled job asks the database for rows that match a filter. When a table holds years of closed tasks or log entries, each of those requests has more rows to sift through, even when the user only wants last week’s records. Indexes help, but they do not remove the cost of carrying data nobody reads. Teams often call this data debt: records that piled up through normal use, none of which anyone decided to keep for the long term.
The effect is uneven. A large audit table that only administrators open may cost little day to day, while a smaller task table feeding dashboards and approval queues can hurt quickly. Rank your biggest tables by how often users and background jobs read them, not by row count alone. If a slow page reads very few rows and is still slow, cleanup is unlikely to fix it. Our troubleshooting guide for ServiceNow performance issues covers how to measure that, and the ServiceNow platform performance guides list the wider causes.
Matching each table type to a lifecycle tool
Tables differ in what they hold and who needs them afterward. Treat the table below as a starting point and confirm each choice against your own retention requirements.
| Table type | Retention question | Usual starting tool |
|---|---|---|
| Task records such as incidents and requests | Are closed records still referenced by open work? | Archiving rules, after a reference check |
| Audit history | Does an investigation or compliance need still apply? | Longer retention with owner sign-off, then table rotation if the table qualifies |
| Email and notification records | Do they have value once delivered? | Table Cleaner, if a cleanup rule suits the table |
| Log and integration tables | How long does diagnostic value last? | Table Cleaner, or table rotation |
| CMDB records | Are retired items still linked to other records? | Review linked records first, then decide whether to archive |
| Temporary and staging tables | Are they meant to be emptied? | Table Cleaner, if a cleanup rule suits the table |
Archiving rules and the references they can break
Archiving moves records that match a condition out of the live table, so everyday queries stop scanning them. The step people skip is the reference check. Before you enable a rule, list the reference fields that point at the table, decide what should happen when the target moves, and open a sample of parent records to confirm they still show what users expect.
Archived records are kept, but reading them is not the same as reading a live record. Check who can see them, since that depends on how your instance is configured and which roles people hold. If an outside team runs the cleanup, our article on data security when offshore IT teams work on your systems covers the handling side.
Table Cleaner limits and misconfigured rules
The Table Cleaner removes records in batches on a schedule, and it suits high-volume, low-value tables such as temporary data and logs. Two behaviors catch people out. A run has a time limit, so a rule against a very large table may need several runs. The cleaner runs hourly, and by default each rule gets up to 20 minutes per run. A rule whose query takes longer than 30 seconds stops the whole cleaner job, and by default that rule is left out of the job for two days. A rule whose condition matches the wrong rows can keep deleting them on each run until someone changes or disables it. The two-day wait and the 20-minute time limit can be changed with system properties on your own instance, so check them before you rely on a rule.
One common failure is a condition that is too broad. A rule meant to clear last month’s temporary records, built on a field that is blank on older rows, can match far more than intended. Other failures include a rule switched on without a test on a copy of the instance, a rule whose author has left without recording its purpose, and a rule that was correct once but no longer matches how data is entered. Write the purpose beside each rule, keep a list of records it should and should not match, and read the last run result before you trust it.
Staging large deletions in segments
A one-off cleanup should run in segments, such as one date range, one source or one group at a time. Start with a count of matching records, delete one segment, then check the reports and pages that depend on the table before moving on. Keep a log of each segment with its condition and run time, so a mistake traces back to a single step. Run heavy work outside busy hours and watch performance, because large deletes add their own load.
Test the whole sequence on a copy of the instance first. The copy will not match production perfectly, but it shows whether the conditions select what you expect and whether dependent jobs still behave.
Retention ownership and data readiness for AI
Base retention decisions on your documented requirements. Each retention rule needs a named owner, a written reason and a last-reviewed date. Without them, the cleanup becomes a one-off project and the table grows again. For the policy side, see our data strategy consulting page.
Retention also matters if the instance feeds reporting or AI features. Old, duplicated or half-finished records can skew what those features report or suggest, so review a table before you point an AI feature at it. Our page on checking your data before you build on AI covers that review.
Frequently asked questions
Can archived records be restored?
Yes. An admin restores archived records from the Data Management Console, and related records can be restored along with them. Test a restore on a copy before you rely on it for a real record.
Will cleaning up a table speed up the whole instance?
Usually the gain shows up in the pages, reports and jobs that scanned that table. Measure the slow areas before and after the change rather than expecting a general lift across the instance.
Should we delete audit records to free space?
Only with a documented retention decision and sign-off from the owner. Audit records often serve investigations long after the work they describe, and removing them is hard to undo.
Who should be able to see archived records?
Limit access to people with a documented need, such as audit or investigation roles. Confirm the access rules on your own instance, since they depend on configuration and assigned roles.
When archiving or cleanup is the wrong fix for a slow instance
Archiving and cleanup help mainly when the slow work scans the table you are trimming. If a form, list or scheduled job is slow for another reason, removing rows changes very little and adds risk. Before you choose a lifecycle tool, confirm which of the causes below is actually behind the slowness.
The first candidate is the query itself. A list filtered on an unindexed field, or a report that joins two large tables without a useful condition, can be slow even at a modest row count. Adding a suitable index or narrowing the filter is usually cheaper and easier to reverse than archiving a table people still query. Read the query behind the slow page, not only the timing. If the query needs tuning, our performance tuning and upgrade work covers that review.
The second candidate is a report that asks for history. Teams often keep years of raw rows because a trend chart needs them, yet that chart rarely needs every raw row. Collecting the figures on a schedule into a smaller summary table keeps the history and takes the scan off the live table. That is a design change, so it belongs in the reporting plan rather than in a cleanup ticket.
The third candidate is an integration. Another system may read the table through an API, a scheduled export or a reference lookup. Archiving those rows can break a feed that the ServiceNow team did not know existed, and the break often shows up days later. Our integration monitoring and error ownership work is a related topic for hidden dependencies like this.
A short decision rule keeps the order right:
- If the slow query filters on an unindexed field, tune the query first.
- If the slow page is a trend report, rebuild it on summarized data.
- If an outside system reads the table, agree a retention window with its owner first.
- If none of these apply and the table is large and mostly unread, archive or clean it.
Growth alone is a reason to plan retention, not proof that deleting rows will restore speed. Teams that delete first can find the same page still slow a month later, because the cause was often something other than the row count. Settle the query, the report and the integrations first. Then the archive or cleanup does the job you wanted it to do.