---
title: "dc_table_partition_versions (Data Cache)"
description: "Table Partition Versions"
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/datamodels/invantivedatareplicator/Cache.Invantive.dc_table_partition_versions
original: https://documentation.invantive.eu/en/datamodels/invantivedatareplicator/Cache.Invantive.dc_table_partition_versions
updated: 2023-08-17T08:37:05Z
license: https://documentation.invantive.eu/en/
---

# dc_table_partition_versions: Data Cache Table Partition Versions

`read only`

- Catalog: `Cache`
- Schema: `Invantive`
- Primary Keys: `tpn_id`
- Label: Table Partition Versions

Data set replicated from a table for a specific partition at a specific moment in time.

Can only retrieve data.

## Table Columns

The columns of the table `dc_table_partition_versions` are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.

| Name | Data Type | Label | Required | Marks | Documentation |
|---|---|---|:---:|---|---|
| `ptn_id` | `decimal` | Partition ID | [x] |  | Reference to a partition. |
| `tbe_id` | `decimal` | Table ID | [x] |  | Reference to a table. |
| `tpn_count_rows` | `decimal` | Rows | [ ] |  | Number of rows in the table partition version. |
| `tpn_count_rows_deleted` | `decimal` | Count of Deleted Rows | [ ] |  | Number of rows deleted compared to previous table partition version. |
| `tpn_count_rows_delta` | `decimal` | Delta of Row Count | [ ] |  | Number of rows changed compared to previous table partition version. |
| `tpn_count_rows_inserted` | `decimal` | Count of Inserted Rows | [ ] |  | Number of rows inserted compared to previous table partition version. |
| `tpn_count_rows_previous` | `decimal` | Previous Row Count | [ ] |  | Number of rows in the previous table partition version. |
| `tpn_count_rows_updated` | `decimal` | Count of Updated Rows | [ ] |  | Number of rows updated compard to previous table partition version. |
| `tpn_created_at` | `varchar2(60)` | Created in | [x] |  | The code of the function in the modules table from within which the user created the record. This value will never change after creation of the record. |
| `tpn_created_by` | `varchar2(60)` | Created by | [x] |  | Who created the record. |
| `tpn_data_file_name_path` | `varchar2(500)` | Data File Name Path | [ ] |  | Storage location of the data on disk. |
| `tpn_date_becomes_droppable` | `datetime` | Date Becomes Droppable | [ ] |  | Date/time at which the data in the facts table may first be deleted (UTC). |
| `tpn_date_becomes_obsolete` | `datetime` | Date Becomes Obsolete | [ ] |  | Date/time at which the data in the facts table may first be declared obsolete (UTC). |
| `tpn_date_created` | `datetime` | Created at | [x] |  | The system time in UTC at which the record was created. This value will never change after creation of the record. |
| `tpn_date_last_fresh_check` | `datetime` | Date Last Freshness Check | [ ] |  | Date/time at which the facts table was last checked for freshness (UTC). |
| `tpn_date_last_got_created` | `datetime` | Date Last Got Created | [ ] |  | Date/time at which the facts table was last created (UTC). |
| `tpn_date_last_got_dropped` | `datetime` | Date Last Got Dropped | [ ] |  | Date/time at which the data in the facts table was declared deleted (UTC). |
| `tpn_date_last_got_obsoleted` | `datetime` | Date Last Got Obsoleted | [ ] |  | Date/time at which the data in the facts table was declared obsolete (UTC). |
| `tpn_date_last_got_ready` | `datetime` | Date Last Got Ready | [ ] |  | Date/time at which the facts table was last made available for use (UTC). |
| `tpn_date_last_got_seeding` | `datetime` | Date Last Got Seeding | [ ] |  | Date/time at which the facts table was last seeded for new data (UTC). |
| `tpn_date_last_load_start` | `datetime` | Date Last Load Start | [ ] |  | Date/time at which the facts table was last loaded with new data (UTC). |
| `tpn_date_metadata_is_droppable` | `datetime` | Date Metadata is Droppable | [ ] |  | Date/time at which the metadata on the facts table may first be declared deleted (UTC). |
| `tpn_date_modified` | `datetime` | Updated at | [x] |  | The system time in UTC at which the record was last updated. This value will change for every mutation of the record. |
| `tpn_estimated_size_characters` | `decimal` | Estimated Size (characters) | [ ] |  | Estimates size of characters in the data for the table partition version. |
| `tpn_id` | `decimal` | ID | [x] |  | Unique identifier. |
| `tpn_lv_date_last_got_created` | `datetime` | Date Logical View Last Got Created | [ ] |  | Date/time at which the overall and/or partition logical views were last maintained (UTC). |
| `tpn_modified_at` | `varchar2(60)` | Updated in | [x] |  | The code of the function in the modules table from within which the user last updated the record. This value will change for every mutation of the record. |
| `tpn_modified_by` | `varchar2(60)` | Updated by | [x] |  | The name of the user in the users table whom last updated the record. This value will change for every update of the record. |
| `tpn_orig_system_group` | `varchar2(240)` | Original System Group | [ ] |  | Reference for identifying the group of records on the system from which it originated. It is commonly used to group records for later validation in an application control. |
| `tpn_orig_system_reference` | `varchar2(240)` | Original System Reference | [ ] |  | Reference for identifying the record on the system from which it originated. |
| `tpn_refresh_origin` | `varchar2(1)` | Refresh Origin | [x] |  | Origin of the refresh action leading to this version: 'S' for select, 'L' for load and 'R' for refresh. |
| `tpn_seeding_approach_used_code` | `char` | Seeding Approach Used Code | [x] |  | Seeding approach to get a up-to-date data set. Seeding approaches include 'C' for 'Complete', 'S' for 'Smart Sampling' and ' T' for 'Trickle Loading'. |
| `tpn_seeding_approach_used_description` | `varchar2` | Seeding Approach Used Description | [x] |  | Description of the seeding approach. |
| `tpn_seeding_parameter_used_1` | `varchar2` | Seeding Parameter Used #1 | [ ] |  | Value of a parameter used for the seeding process. Meaning depends on the seeding approach. |
| `tpn_seeding_parameter_used_2` | `varchar2` | Seeding Parameter Used #2 | [ ] |  | Value of a parameter used for the seeding process. Meaning depends on the seeding approach. |
| `tpn_seeding_parameter_used_3` | `varchar2` | Seeding Parameter Used #3 | [ ] |  | Value of a parameter used for the seeding process. Meaning depends on the seeding approach. |
| `tpn_seeding_parameter_used_4` | `varchar2` | Seeding Parameter Used #4 | [ ] |  | Value of a parameter used for the seeding process. Meaning depends on the seeding approach. |
| `tpn_seeding_parameter_used_5` | `varchar2` | Seeding Parameter Used #5 | [ ] |  | Value of a parameter used for the seeding process. Meaning depends on the seeding approach. |
| `tpn_session_created` | `varchar2(240)` | Session Created | [x] |  | The ID of the session which created the record. This value will not change after insert. |
| `tpn_session_modified` | `varchar2(240)` | Session Updated | [x] |  | The ID of the session which last updated the record. |
| `tpn_state` | `varchar2(1)` | State Code | [x] |  | Code of the state in which the table partition version is. |
| `tpn_state_description` | `varchar2(240)` | State Description | [x] |  | Description of the state in which the table partition version is. |
| `tpn_state_note` | `varchar2(240)` | State Note | [ ] |  | Note on the state in which the table partition version is. |
| `tpn_transaction_created` | `varchar2(240)` | Transaction Created | [x] |  | The ID of the transaction which created the record. |
| `tpn_transaction_modified` | `varchar2(240)` | Transaction Updated | [x] |  | The ID of the transaction which last updated the record. |
| `tpn_version` | `decimal` | Version Number | [x] |  | Numeric incremental version of the table partition. Increased by 1 every time a new data set is downloaded and/or calculated. |



## Release Notes

What changed per release in the tables, columns, attributes and capabilities of the driver:

- [Data Cache](/en/release-notes/drivers?driver=data-cache)

