---
sourceDocument: Brazil ServiceNow AI Platform Capabilities
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/servicenow-platform

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# Live tables and archive tables

# Live tables and archive tables {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 4 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Live tables and archive tables

In ServiceNow, Live Archive moves records from live tables to corresponding archive tables that have a different schema and storage format.
Understanding these differences helps you write accurate queries and interpret archived data correctly.
Archive tables use a columnar, flattened, and immutable data structure, differing substantially from the row-oriented, relational live tables.
Show full answer Show less  

## Key Differences Between Live and Archive Tables

* **Data Structure:** Live tables store data row-oriented with full relational references (using sysid), while archive tables use a columnar format with flattened, self-contained records.
* **Reference Fields:** In live tables, references store sysid values; in archive tables, they store display values by default or sysid if the archive rule's "Retain References" is enabled.
* **Choice Fields:** Live tables store integer codes; archive tables store display labels.
* **Journal Fields:** Stored as child records in live tables, but serialized into the archive record.
* **Mutability:** Live records can be updated; archived records are immutable and must be restored to live tables for modification.

## Practical Implications

* Archive tables are self-contained, so queries do not require joins to resolve reference fields, but archived values reflect the state at archiving time.
* When combining live and archive data, differences in field data types require normalization (e.g., using the DV() function to get display values from live tables).
* Without normalization, combined queries can yield mismatched or incorrect results when grouping or filtering.

## Columnar Storage Benefits

* Columnar format stores values for each column adjacently, improving I/O efficiency for queries that aggregate or filter on few columns across many records.
* It provides better compression (around 50%) compared to live tables.

## Optimal Query Patterns for Archive Tables

* Perform well for column-selective aggregations (COUNT, AVG, SUM, MIN, MAX) over many rows.
* Efficient for filtered scans on date or low-cardinality columns (like openedat, closedat, state, priority).
* Ideal for trend and time-series analyses that group by date and aggregate metrics.
* Effective for reporting on resolved dimensions without needing joins.

## Limitations of Archive Tables

* Less efficient for queries retrieving full records or many columns for few rows.
* Joins on sysid with live tables are complicated because archive tables store display values, requiring careful handling and use of DV() function.
* To update archived records, they must be restored to live tables first due to immutability.  
When Live Archive moves records out of a live table, it stores them in a corresponding archive table with a different schema and storage format. Understanding these differences is essential for writing effective queries and
interpreting results correctly.

## Structural differences {#live-tables-and-archive-tables__section-structural-differences}

Live tables and archive tables differ fundamentally in how data is stored and structured. The following table summarizes the key differences.
{#live-tables-and-archive-tables__table-structural-differences__entry__2}

| Live table | Archive table |
|-|-|
| Row-oriented: all columns for a record are stored together | Columnar: all values for each column are stored together |
| Reference fields store `sys_id` | Reference fields store the display value by default, or `sys_id` when Retain References is enabled on the archive rule |
| Choice fields store integer codes | Choice fields store display labels |
| Journal fields stored as child records in `sys_journal_field` | Journal fields serialized directly into the archive row |
| Records are mutable | Records are immutable; restore to the live table to modify |
| Full relational structure intact | Flattened, self-contained schema |
[ ]

{#live-tables-and-archive-tables__table-structural-differences}

## Flattened schema {#live-tables-and-archive-tables__section-flattened-schema}

When a record moves from a live table to an archive table, its relational structure is flattened. In a live table, a reference field such as `assigned_to` stores a `sys_id` pointer to a record in
`sys_user`. Retrieving the assigned user's name requires a join.

In an archive table, the behavior of reference fields depends on the archive rule configuration. By default, when Retain References is not selected on the archive rule, reference fields are denormalized: the
display value of the referenced record is stored directly in the archive row at the time of archiving. When Retain References is enabled, the `sys_id` is preserved, and joins to reference tables
remain possible if the referenced records still exist on the instance.

Choice fields store their display labels rather than integer codes. Journal fields such as work notes and comments are serialized and stored as structured text within the archive record, rather than as separate child records in
`sys_journal_field`.

The practical consequence is that archive tables are self-contained. A query against `ar_incident` does not require joins to resolve reference fields, the resolved values are already in the row. However, archive data
reflects the state of referenced records at the time of archiving. If an assigned user's name changed after archiving, the archive record retains the original name.

## Type differences when combining live and archive data {#live-tables-and-archive-tables__section-type-differences}

Live and archive tables store the same field with different data types. Queries that combine both must normalize the values so that the columns align.

For the full list of type differences, see the table in [Structural differences](https://servicenow-prod.fluidtopics.net/7kfOf4aJmbajYNuvchJyDg#live-tables-and-archive-tables__section-structural-differences). In a query, the difference is concrete: a live `state` value of `6` corresponds to an archive value of `Resolved`,
and `assigned_to` holds a `sys_id` in the live table but a display name in the archive table.

Use the `DV()` function on the live side of a query to return the display value instead of the stored code or `sys_id`. For example, `DV(assignment_group)` returns the group name, which
matches the value already stored in the archive table.

Fields that store the same type in both tables, such as `opened_at`, `closed_at`, and `resolve_time`, require no conversion.  
Note:  
Without normalization, a `UNION ALL` across a live table and its archive counterpart returns mismatched values in the same column, integer codes from the live table and display labels from the archive table. Grouping and filtering on those columns produce incorrect results.

## Columnar storage format {#live-tables-and-archive-tables__section-columnar-storage}

Archive tables use a columnar storage format rather than the row-based format used by live tables. In a row-based store, all columns for a given record are stored together on disk. In a columnar store, all values for a given column
are stored together, which means every `closed_at` timestamp, `priority` value, and `category` string are all adjacent to each other on disk.

A query that reads `priority`, `closed_at`, and `category` across millions of archived records does not need to read any other column data. On a wide table such as
`incident`, which can have hundreds of fields, this reduces I/O significantly compared to an equivalent query on a live row-based table.

Columnar storage also compresses more effectively than row-based storage, typically achieving approximately 50% compression on archive data.

## Immutability {#live-tables-and-archive-tables__section-immutability}

Records in archive tables are immutable. A record in `ar_incident` can't be updated or deleted while it resides in archive storage. To modify an archived record, restore it to the live table first. This constraint
verifies the integrity of historical data for audit and conformance purposes.

## Query patterns suited to archive tables {#live-tables-and-archive-tables__section-optimized-query-patterns}

Because of the columnar storage format and the flattened schema, archive tables perform well for specific query patterns and less well for others.

Archive tables perform well for:

* **Column-selective aggregations.** Queries that aggregate a small number of columns across many rows. `COUNT`, `AVG`, `SUM`, `MIN`, `MAX` are fast because the database reads only the columns involved in the calculation.
* **Filtered scans on date range or low-cardinality columns.** `WHERE` clauses on `opened_at`, `closed_at`, `state`, `priority`, or `category` allow the columnar engine to skip large portions of data.
* **Trend and time-series analysis.** Queries that group by date parts and aggregate metrics over long time horizons read only the date column and metric column.
* **Reporting on resolved dimensions.** Because reference fields are already resolved to display values, queries don't need joins to look up names, groups, or categories.

Archive tables perform less well for:

* **Full record retrieval.** Queries that select all columns (`SELECT *`) or a large proportion of columns on a small number of rows are less efficient in columnar storage. For single-record lookups, use the platform's standard record view.
* **Joins to live tables on sys_id.** Reference fields in archive tables hold display values, not `sys_id` values. Joining on `sys_id` requires the `DV()` function or careful handling.

