The CreatorCon Call for Content is officially open! Get started here.

AshishKM
Kilo Patron
Kilo Patron

ServiceNow's Table Extension Model is a powerful framework that allows developers to create modular and scalable data structures. This model includes three main concepts: partition, class, and hierarchy as below.

 

1.Partition:

Partitioning refers to the way data is organized and stored within tables. There are two primary partitioning methods:

 

          Table per Partition: This method creates separate database tables for the parent class and each child class,child class only stores records unique to that class, while the parent class replicates each record stored in its child classes.

 

          Table per Hierarchy: In this method, one database table is created for the parent class, which stores all records for the parent and child classes, there is no separate database table for child class, all child records are stored in parent table with unique class identifier.

 

2.Class: In ServiceNow, a class refers to the actual table name in the instance database.Classes can be extended to create child classes, which inherit fields and attributes from their parent class.This inheritance allows for reusability and consistency across different applications and modules.

 

3.Hierarchy: Hierarchy in ServiceNow refers to the relationship between parent and child classes, when a table is extended, a hierarchical relationship created where parent class contains own record and it's child class.

 

Table Extension Model, with it's partition, class, and hierarchy concepts, provides a robust framework for organizing and managing data. By leveraging these features, developers can create scalable and modular data structures that meet the unique needs. Designing a new application or enhancing an existing one, understanding and utilizing the Table Extension Model is essential for achieving efficient and effective data management.

 

Reference: Table Administration

 

 

-Thanks,

AshishKM

 

4 Comments