syst_instance_type_contexts


Description

Establishes Instance Type defaults for each of an Application’s defined datastore contexts.

General Usage

In practice, these records are used in the creation of Instance Context records, but do not establish a direct relationship; records in this table simply inform us what Instance Contexts should exist and give us default values to use in their creation.

Columns

Column Type Size Nulls Auto Default Children Parents Comments
id uuid 2147483647 uuid_generate_v7()

The record’s primary key. The definitive identifier of the record in the system.

General Usage

This column is system maintained and should be considered read only in normal operations.

instance_type_application_id uuid 2147483647 null
syst_instance_type_applications.id syst_instance_type_contexts_inst_type_app_fk C

The Instance Type/Application association to which the context definition belongs.

application_context_id uuid 2147483647 null
syst_application_contexts.id syst_instance_type_contexts_application_contexts_fk C

The Application Context which is being represented in the Instance Type.

default_db_pool_size int4 10 0

A default pool size which is assigned to new Instances of the Instance Type unless the creator of the Instance specifies a different value.

diag_timestamp_created timestamptz 35,6 now()

The database server date/time when the transaction which created the record started.

General Usage

This column is system maintained and should be considered read only in normal operations.

diag_role_created text 2147483647 null

The database role which created the record.

General Usage

This column is system maintained and should be considered read only in normal operations.

diag_timestamp_modified timestamptz 35,6 now()

The database server date/time when the transaction which modified the record started. This field will be the same as diag_timestamp_created for inserted records.

General Usage

This column is system maintained and should be considered read only in normal operations.

diag_wallclock_modified timestamptz 35,6 clock_timestamp()

The database server date/time at the moment the record was actually modified. For long running transactions this time may be significantly later than the value of diag_timestamp_modified.

General Usage

This column is system maintained and should be considered read only in normal operations.

diag_role_modified text 2147483647 null

The database role which modified the record.

General Usage

This column is system maintained and should be considered read only in normal operations.

diag_row_version int8 19 1

The current version of the row. The value here indicates how many actual data changes have been made to the row. If an update of the row leaves all data fields the same, disregarding the updates to the diag_* columns, the row version is not updated, nor are any updates made to the other diag_* columns other than diag_update_count.

General Usage

This column is system maintained and should be considered read only in normal operations.

Direct Usage

This column is frequently used by by application logic to resolve the “dirty write” issues which can arise from concurrent data changes. As such any administrative override of automatic system maintenance of this value should consider the ramifications on application function.

diag_update_count int8 19 0

Records the number of times the record has been updated regardless as to if the update actually changed any data. In this way needless or redundant record updates can be found. This row starts at 0 and therefore may be the same as the diag_row_version - 1.

General Usage

This column is system maintained and should be considered read only in normal operations.

Indexes

Constraint Name Type Sort Column(s)
syst_instance_type_contexts_pk Primary key Asc id
syst_instance_type_contexts_instance_types_applications_udx Must be unique Asc/Asc instance_type_application_id + application_context_id

Check Constraints

Constraint Name Constraint
syst_instance_type_contexts_default_db_pool_size_chk ((default_db_pool_size >= 0))

Relationships