InvantiveのドキュメントInvantive Cloudの一部
Invantive サポートフォーラムログイン / 会員登録

Alter Persistent Cache Statement

目的

Invantive UniversalSQLは、セッション期間中有効なインメモリキャッシュに加えて、SQL ServerやPostgreSQLなどのオンプレミスまたはクラウドのリレーショナルデータベースにデータを永続的に保存する統合キャッシュも提供します。 設定されている場合、Invantive UniversalSQLはまずキャッシュ内で十分に新しいデータを探します。 これにより、一部のクラウドプラットフォームなど、動作の遅いデータコンテナからのデータ読み込み回数が減ります。 一般に、行をキャッシュから完全に取得できる場合の性能向上は、25倍から2.500倍の間です。

Invantive UniversalSQL自体が、データキャッシュとして使用するリレーショナルデータベース内のテーブル構造とテーブル内容を管理します。 初回使用時には、空のデータベースを用意するだけで構いません。 サポートされるプラットフォームは、SQL Server、Oracle、PostgreSQL、MySQLです。 Invantive UniversalSQLは、十数個のテーブルからなるリポジトリをインストールします。 リポジトリのテーブル名は「dc_」で始まります。 ほとんどのリポジトリテーブルには、末尾の「r」を除いて同じ名前のビューが付随しています。 リポジトリのビューは、ファクトを格納しているデータベース内での分析を容易にするため、すべてのマスターテーブルを結合します

テーブルパーティションのバージョンごとに、いわゆる「ファクトテーブル」が作成されます。 ファクトテーブルには、データコンテナから取得した行の完全なコピーが格納されます。 ファクトテーブル名は「dcd_」で始まり、テーブルパーティションのバージョンを示す一意のハッシュが続きます。 必要に応じて、性能向上のためのインデックスなど、追加のデータベースオブジェクトが維持されます。 ファクトテーブル名と同様に、すべての列名も元の列名を含むアルゴリズムに基づいてハッシュ化されます。 これらのファクトテーブルは、ネイティブSQLで直接使用することを意図したものではありません。

各ファクトテーブルは、次の状態のいずれか一つを取り、「Ready」状態が現在のバージョンを示します:

  • 初期化中('I'):ファクトテーブルが作成されます。
  • ビュー作成('V'):論理ビューが作成されます。
  • 準備完了('P'):ファクトテーブルは作成済みですが、まだ行を含んでいません。
  • シーディング('S'):ファクトテーブルに、以前の現行バージョンの内容が投入されています。
  • 読み込み中('L'):ウォーターシェッドなどのアルゴリズムを用いて、データコンテナから新しいファクトを読み込みます。
  • Ready('R'):ファクトテーブルが利用可能で、使用すべき現行のテーブルです。
  • 廃止('O'):ファクトテーブルは依然として存在しますが、データは保存期間を過ぎています。 多くの場合、現在はより新しいバージョンが現行となっています。
  • 削除済み('D'):ファクトテーブルはもう存在しませんが、メタデータはリポジトリテーブルに残っています。

データベース内の永続キャッシュは、Invantive Data Replicatorで拡張することで、ネイティブSQLから使用できます。 Invantive Data Replicatorは、テーブルパーティションの現行バージョンに対するデータベースビュー(いわゆる「パーティションビュー」)を作成・維持します。 同様に、各パーティションの現行バージョンのすべてのパーティションにわたる行を表示する「全体ビュー」を作成することもできます。 Invantive Data Replicatorは、少ない手間で高性能かつ大容量の運用データストアを提供します。

全体ビューは通常、複数の会社や人物にまたがるデータを集約する目的で使用されます。

構文

%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart LR
    Start((START)) --> | | alterPersistentCacheSetStatement
    alterPersistentCacheSetStatement --> End((END))
    Start((START)) -->| | alterPersistentCacheDownloadStatement
    alterPersistentCacheDownloadStatement --> End((END))
    Start((START)) -->| | alterPersistentCachePurgeStatement
    alterPersistentCachePurgeStatement --> End((END))
    Start((START)) -->| | alterPersistentCacheRefreshStatement
    alterPersistentCacheRefreshStatement --> End((END))
    Start((START)) -->| | alterPersistentCacheLoadStatement
    alterPersistentCacheLoadStatement --> End((END))
    Start((START)) -->| | alterPersistentCacheTableRefreshStatement
    alterPersistentCacheTableRefreshStatement --> End((END))
    Start((START)) -->| | alterPersistentCachePartitionRefreshStatement
    alterPersistentCachePartitionRefreshStatement --> End((END))
    Start((START)) -->| | alterPersistentCacheDropStatement
    alterPersistentCacheDropStatement --> End((END))
    Start((START)) -->| | alterPersistentCacheConfigureWebhooksStatement
    alterPersistentCacheConfigureWebhooksStatement --> End((END))

目的

パージ文は、既存のテーブルパーティションのバージョンを維持します。 テーブルパーティションのバージョンは、次のいくつかの方法でパージできます:

  • ready:状態「Ready」のテーブルパーティションのバージョンを選択します。 テーブルパーティションのバージョンは状態「Obsolete」になります。 ファクトは削除されません。
  • obsolete:状態「Obsolete」のテーブルパーティションのバージョンを選択します。 これらのファクトは削除されます。 テーブルパーティションのバージョンは状態「Dropped」になります。 削除されたファクトは、状態「Ready」のときに実行を開始したクエリで使用されている可能性があります。 データベースプラットフォームが、既に削除された行からのデータ読み取りをサポートしている場合(Oracleなど)、ファクトは安全に削除できます。 廃止されたファクトのパージは、リフレッシュの実行時間を短縮するため、リフレッシュとは別のバックグラウンドタスクとしてよく使用されます。データの削除はリフレッシュの前に既に実行されているためです。
  • droppable:状態「Dropped」のテーブルパーティションのバージョンを選択します。 削除済み状態にもかかわらずファクトが残っている場合、それらのファクトは削除されます。 削除済み状態はファクトが既に削除されていることを示すため、これは例外的な状況でのみ有用です。 テーブルパーティションのバージョンは状態「Dropped」のままです。
  • unknown:命名規則「dcd...」または「dcs...」に一致するテーブルをデータベースに問い合わせます。 リポジトリに登録されていないテーブルは、データベースから削除されます。 リポジトリが誤って削除された場合や、誤って変更された場合など、例外的な状況でのみ有用です。
  • all: まず「unknown」バリアントを実行し、その後「droppable」バリアントを実行します。これは例外的な状況でのみ有用です。 これは例外的な状況でのみ有用です。

データコンテナを指定すると、テーブルパーティションバージョンの対象が、列挙されたデータコンテナに限定されます。

PSQL パッケージ

Invantive PSQLには、事前定義済みのパッケージが多数用意されています。 これらはSystemPackages@DataDictionaryおよびSystemPackageFunctions@DataDictionaryを使用して照会できます。

alterPersistentCachePurgeStatement

%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart TD
    alterPersistentCachePurgeStatement_start((START))
    alterPersistentCachePurgeStatement_start --> alterPersistentCachePurgeStatement_0_0[ALTER]:::quoted
    alterPersistentCachePurgeStatement_0_0 --> alterPersistentCachePurgeStatement_0_1[PERSISTENT]:::quoted
    alterPersistentCachePurgeStatement_0_1 --> alterPersistentCachePurgeStatement_0_2[CACHE]:::quoted
    alterPersistentCachePurgeStatement_0_2 --> alterPersistentCachePurgeStatement_0_3[PURGE]:::quoted
    alterPersistentCachePurgeStatement_0_3 --> alterPersistentCachePurgeStatement_0_4[UNKNOWN]:::quoted
    alterPersistentCachePurgeStatement_0_4 --> alterPersistentCachePurgeStatement_0_5[DROPPABLE]:::quoted
    alterPersistentCachePurgeStatement_0_5 --> alterPersistentCachePurgeStatement_0_6[OBSOLETE]:::quoted
    alterPersistentCachePurgeStatement_0_6 --> alterPersistentCachePurgeStatement_0_7[READY]:::quoted
    alterPersistentCachePurgeStatement_0_7 --> alterPersistentCachePurgeStatement_0_8[ALL]:::quoted
    alterPersistentCachePurgeStatement_0_8 --> alterPersistentCachePurgeStatement_0_9[TABLE]:::quoted
    alterPersistentCachePurgeStatement_0_9 --> alterPersistentCachePurgeStatement_0_10[PARTITION]:::quoted
    alterPersistentCachePurgeStatement_0_10 --> alterPersistentCachePurgeStatement_0_11[VERSIONS]:::quoted
    alterPersistentCachePurgeStatement_0_11 --> alterPersistentCachePurgeStatement_0_12[DATACONTAINER]:::quoted
    alterPersistentCachePurgeStatement_0_12 --> alterPersistentCachePurgeStatement_0_13[stringConstant]
    alterPersistentCachePurgeStatement_0_13 --> alterPersistentCachePurgeStatement_end((END))

alterPersistentCacheDownloadStatement

%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart TD
    alterPersistentCacheDownloadStatement_start((START))
    alterPersistentCacheDownloadStatement_start --> alterPersistentCacheDownloadStatement_0_0[ALTER]:::quoted
    alterPersistentCacheDownloadStatement_0_0 --> alterPersistentCacheDownloadStatement_0_1[PERSISTENT]:::quoted
    alterPersistentCacheDownloadStatement_0_1 --> alterPersistentCacheDownloadStatement_0_2[CACHE]:::quoted
    alterPersistentCacheDownloadStatement_0_2 --> alterPersistentCacheDownloadStatement_0_3[DOWNLOAD]:::quoted
    alterPersistentCacheDownloadStatement_0_3 --> alterPersistentCacheDownloadStatement_0_4[FEED]:::quoted
    alterPersistentCacheDownloadStatement_0_4 --> alterPersistentCacheDownloadStatement_0_5[LICENSE]:::quoted
    alterPersistentCacheDownloadStatement_0_5 --> alterPersistentCacheDownloadStatement_0_6[CONTRACT]:::quoted
    alterPersistentCacheDownloadStatement_0_6 --> alterPersistentCacheDownloadStatement_0_7[CODE]:::quoted
    alterPersistentCacheDownloadStatement_0_7 --> alterPersistentCacheDownloadStatement_0_8[stringConstant]
    alterPersistentCacheDownloadStatement_0_8 --> alterPersistentCacheDownloadStatement_0_9[TOKEN]:::quoted
    alterPersistentCacheDownloadStatement_0_9 --> alterPersistentCacheDownloadStatement_0_10[stringConstant]
    alterPersistentCacheDownloadStatement_0_10 --> alterPersistentCacheDownloadStatement_0_11[DATACONTAINER]:::quoted
    alterPersistentCacheDownloadStatement_0_11 --> alterPersistentCacheDownloadStatement_0_12[stringConstant]
    alterPersistentCacheDownloadStatement_0_12 --> alterPersistentCacheDownloadStatement_0_13[PARTITION]:::quoted
    alterPersistentCacheDownloadStatement_0_13 --> alterPersistentCacheDownloadStatement_0_14[partitionSimpleIdentifier]
    alterPersistentCacheDownloadStatement_0_14 --> alterPersistentCacheDownloadStatement_0_15[LIMIT]:::quoted
    alterPersistentCacheDownloadStatement_0_15 --> alterPersistentCacheDownloadStatement_0_16[numericConstant]
    alterPersistentCacheDownloadStatement_0_16 --> alterPersistentCacheDownloadStatement_0_17[NO]:::quoted
    alterPersistentCacheDownloadStatement_0_17 --> alterPersistentCacheDownloadStatement_0_18[DELETE]:::quoted
    alterPersistentCacheDownloadStatement_0_18 --> alterPersistentCacheDownloadStatement_end((END))

alterPersistentCacheConfigureWebhooksStatement

%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart TD
    alterPersistentCacheConfigureWebhooksStatement_start((START))
    alterPersistentCacheConfigureWebhooksStatement_start --> alterPersistentCacheConfigureWebhooksStatement_0_0[ALTER]:::quoted
    alterPersistentCacheConfigureWebhooksStatement_0_0 --> alterPersistentCacheConfigureWebhooksStatement_0_1[PERSISTENT]:::quoted
    alterPersistentCacheConfigureWebhooksStatement_0_1 --> alterPersistentCacheConfigureWebhooksStatement_0_2[CACHE]:::quoted
    alterPersistentCacheConfigureWebhooksStatement_0_2 --> alterPersistentCacheConfigureWebhooksStatement_0_3[ENABLE]:::quoted
    alterPersistentCacheConfigureWebhooksStatement_0_3 --> alterPersistentCacheConfigureWebhooksStatement_0_4[DISABLE]:::quoted
    alterPersistentCacheConfigureWebhooksStatement_0_4 --> alterPersistentCacheConfigureWebhooksStatement_0_5[WEBHOOKS]:::quoted
    alterPersistentCacheConfigureWebhooksStatement_0_5 --> alterPersistentCacheConfigureWebhooksStatement_0_6[LICENSE]:::quoted
    alterPersistentCacheConfigureWebhooksStatement_0_6 --> alterPersistentCacheConfigureWebhooksStatement_0_7[CONTRACT]:::quoted
    alterPersistentCacheConfigureWebhooksStatement_0_7 --> alterPersistentCacheConfigureWebhooksStatement_0_8[CODE]:::quoted
    alterPersistentCacheConfigureWebhooksStatement_0_8 --> alterPersistentCacheConfigureWebhooksStatement_0_9[stringConstant]
    alterPersistentCacheConfigureWebhooksStatement_0_9 --> alterPersistentCacheConfigureWebhooksStatement_0_10[TABLE]:::quoted
    alterPersistentCacheConfigureWebhooksStatement_0_10 --> alterPersistentCacheConfigureWebhooksStatement_0_11[tableSpec]
    alterPersistentCacheConfigureWebhooksStatement_0_11 --> alterPersistentCacheConfigureWebhooksStatement_0_12[PARTITION]:::quoted
    alterPersistentCacheConfigureWebhooksStatement_0_12 --> alterPersistentCacheConfigureWebhooksStatement_0_13[partitionSimpleIdentifier]
    alterPersistentCacheConfigureWebhooksStatement_0_13 --> alterPersistentCacheConfigureWebhooksStatement_0_14[DATACONTAINER]:::quoted
    alterPersistentCacheConfigureWebhooksStatement_0_14 --> alterPersistentCacheConfigureWebhooksStatement_0_15[stringConstant]
    alterPersistentCacheConfigureWebhooksStatement_0_15 --> alterPersistentCacheConfigureWebhooksStatement_end((END))

目的

トリクルロードは、レプリケートデータを効率的かつ高速に更新するための高度な戦略です。 これには、レプリケートデータに対するすべての変更(挿入、更新、削除)をイベントメッセージとして登録することが必要で、遅延を伴う場合もあります。

変更の登録は、Webhookを使用して選択したプラットフォームで有効化できます。 Webhookの設定は、このステートメントを使用して行うことができます。 指定しない場合は、現在のサブスクリプションのライセンス契約コードが使用されます。

alterPersistentCacheRefreshStatement

%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart TD
    alterPersistentCacheRefreshStatement_start((START))
    alterPersistentCacheRefreshStatement_start --> alterPersistentCacheRefreshStatement_0_0[ALTER]:::quoted
    alterPersistentCacheRefreshStatement_0_0 --> alterPersistentCacheRefreshStatement_0_1[PERSISTENT]:::quoted
    alterPersistentCacheRefreshStatement_0_1 --> alterPersistentCacheRefreshStatement_0_2[CACHE]:::quoted
    alterPersistentCacheRefreshStatement_0_2 --> alterPersistentCacheRefreshStatement_0_3[FORCE]:::quoted
    alterPersistentCacheRefreshStatement_0_3 --> alterPersistentCacheRefreshStatement_0_4[REFRESH]:::quoted
    alterPersistentCacheRefreshStatement_0_4 --> alterPersistentCacheRefreshStatement_0_5[DATACONTAINER]:::quoted
    alterPersistentCacheRefreshStatement_0_5 --> alterPersistentCacheRefreshStatement_0_6[dataContainerAlias]
    alterPersistentCacheRefreshStatement_0_6 --> alterPersistentCacheRefreshStatement_0_7[PARALLEL]:::quoted
    alterPersistentCacheRefreshStatement_0_7 --> alterPersistentCacheRefreshStatement_0_8[numericConstant]
    alterPersistentCacheRefreshStatement_0_8 --> alterPersistentCacheRefreshStatement_0_9[APPROACH]:::quoted
    alterPersistentCacheRefreshStatement_0_9 --> alterPersistentCacheRefreshStatement_0_10[COPY]:::quoted
    alterPersistentCacheRefreshStatement_0_10 --> alterPersistentCacheRefreshStatement_0_11[TRICKLE]:::quoted
    alterPersistentCacheRefreshStatement_0_11 --> alterPersistentCacheRefreshStatement_0_12[SAMPLE]:::quoted
    alterPersistentCacheRefreshStatement_0_12 --> alterPersistentCacheRefreshStatement_0_13[DEFAULT]:::quoted
    alterPersistentCacheRefreshStatement_0_13 --> alterPersistentCacheRefreshStatement_0_14[WHEN]:::quoted
    alterPersistentCacheRefreshStatement_0_14 --> alterPersistentCacheRefreshStatement_0_15[OBSOLETE]:::quoted
    alterPersistentCacheRefreshStatement_0_15 --> alterPersistentCacheRefreshStatement_0_16[WITHIN]:::quoted
    alterPersistentCacheRefreshStatement_0_16 --> alterPersistentCacheRefreshStatement_0_17[intervalConstant]
    alterPersistentCacheRefreshStatement_0_17 --> alterPersistentCacheRefreshStatement_end((END))

目的

このステートメントは、接続されたすべてのデータコンテナエイリアス、または特定の1つのデータコンテナエイリアスのレプリケートデータの更新をトリガーします。 特定の期間のレプリケートデータを使用するSQLステートメントを実行することでも、レプリケートデータの更新をトリガーできます。

デフォルトモード(「force」なし)では、レプリケートデータの期間が設定された最大期間を超えた場合にのみ、指定されたデータに対して更新が実行されます。 設定された最大期間に対するオフセットは、「when obsolete within」句を使用して指定できます。 強制更新の場合、レプリケートデータは常にソースデータの最新バージョンで置き換えられます。

データを複製する並列プロセスの最大数は、「parallel」句を使用して設定でき、スループットを向上させ、複製プロセスの実行時間を短縮できます。

デフォルトでは、各テーブルパーティションに設定された方式でレプリカが更新されます。 ただし、異なる方式を指定することもできます。 これは通常、テーブルパーティションをトリクルロードに切り替えた後に、コピー方式で一度限りの複製処理を実行し、変更が見落とされていないことを確実にする場合に行われます。

alterPersistentCacheLoadStatement

%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart LR
    alterPersistentCacheLoadStatement_start((START))
    alterPersistentCacheLoadStatement_start --> alterPersistentCacheLoadStatement_0_0[ALTER]:::quoted
    alterPersistentCacheLoadStatement_0_0 --> alterPersistentCacheLoadStatement_0_1[PERSISTENT]:::quoted
    alterPersistentCacheLoadStatement_0_1 --> alterPersistentCacheLoadStatement_0_2[CACHE]:::quoted
    alterPersistentCacheLoadStatement_0_2 --> alterPersistentCacheLoadStatement_0_3[LOAD]:::quoted
    alterPersistentCacheLoadStatement_0_3 --> alterPersistentCacheLoadStatement_end((END))

目的

接続されたすべてのデータコンテナにある利用可能なすべてのテーブルを、キャッシュに読み込みます。 通常はデモンストレーションに使用されます。

alterPersistentCacheTableRefreshStatement

%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart TD
    alterPersistentCacheTableRefreshStatement_start((START))
    alterPersistentCacheTableRefreshStatement_start --> alterPersistentCacheTableRefreshStatement_0_0[ALTER]:::quoted
    alterPersistentCacheTableRefreshStatement_0_0 --> alterPersistentCacheTableRefreshStatement_0_1[PERSISTENT]:::quoted
    alterPersistentCacheTableRefreshStatement_0_1 --> alterPersistentCacheTableRefreshStatement_0_2[CACHE]:::quoted
    alterPersistentCacheTableRefreshStatement_0_2 --> alterPersistentCacheTableRefreshStatement_0_3[TABLE]:::quoted
    alterPersistentCacheTableRefreshStatement_0_3 --> alterPersistentCacheTableRefreshStatement_0_4[tableSpec]
    alterPersistentCacheTableRefreshStatement_0_4 --> alterPersistentCacheTableRefreshStatement_0_5[FORCE]:::quoted
    alterPersistentCacheTableRefreshStatement_0_5 --> alterPersistentCacheTableRefreshStatement_0_6[REFRESH]:::quoted
    alterPersistentCacheTableRefreshStatement_0_6 --> alterPersistentCacheTableRefreshStatement_0_7[PARTITION]:::quoted
    alterPersistentCacheTableRefreshStatement_0_7 --> alterPersistentCacheTableRefreshStatement_0_8[partitionIdentifierWithAlias]
    alterPersistentCacheTableRefreshStatement_0_8 --> alterPersistentCacheTableRefreshStatement_0_9[PARALLEL]:::quoted
    alterPersistentCacheTableRefreshStatement_0_9 --> alterPersistentCacheTableRefreshStatement_0_10[numericConstant]
    alterPersistentCacheTableRefreshStatement_0_10 --> alterPersistentCacheTableRefreshStatement_0_11[APPROACH]:::quoted
    alterPersistentCacheTableRefreshStatement_0_11 --> alterPersistentCacheTableRefreshStatement_0_12[COPY]:::quoted
    alterPersistentCacheTableRefreshStatement_0_12 --> alterPersistentCacheTableRefreshStatement_0_13[TRICKLE]:::quoted
    alterPersistentCacheTableRefreshStatement_0_13 --> alterPersistentCacheTableRefreshStatement_0_14[SAMPLE]:::quoted
    alterPersistentCacheTableRefreshStatement_0_14 --> alterPersistentCacheTableRefreshStatement_0_15[DEFAULT]:::quoted
    alterPersistentCacheTableRefreshStatement_0_15 --> alterPersistentCacheTableRefreshStatement_0_16[WHEN]:::quoted
    alterPersistentCacheTableRefreshStatement_0_16 --> alterPersistentCacheTableRefreshStatement_0_17[OBSOLETE]:::quoted
    alterPersistentCacheTableRefreshStatement_0_17 --> alterPersistentCacheTableRefreshStatement_0_18[WITHIN]:::quoted
    alterPersistentCacheTableRefreshStatement_0_18 --> alterPersistentCacheTableRefreshStatement_0_19[intervalConstant]
    alterPersistentCacheTableRefreshStatement_0_19 --> alterPersistentCacheTableRefreshStatement_end((END))

目的

指定したテーブルのすべてのデータを更新します。 オプションについては、alterPersistentCacheRefreshStatementで説明しています。

alterPersistentCachePartitionRefreshStatement

%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart TD
    alterPersistentCachePartitionRefreshStatement_start((START))
    alterPersistentCachePartitionRefreshStatement_start --> alterPersistentCachePartitionRefreshStatement_0_0[ALTER]:::quoted
    alterPersistentCachePartitionRefreshStatement_0_0 --> alterPersistentCachePartitionRefreshStatement_0_1[PERSISTENT]:::quoted
    alterPersistentCachePartitionRefreshStatement_0_1 --> alterPersistentCachePartitionRefreshStatement_0_2[CACHE]:::quoted
    alterPersistentCachePartitionRefreshStatement_0_2 --> alterPersistentCachePartitionRefreshStatement_0_3[PARTITION]:::quoted
    alterPersistentCachePartitionRefreshStatement_0_3 --> alterPersistentCachePartitionRefreshStatement_0_4[partitionIdentifierWithAlias]
    alterPersistentCachePartitionRefreshStatement_0_4 --> alterPersistentCachePartitionRefreshStatement_0_5[FORCE]:::quoted
    alterPersistentCachePartitionRefreshStatement_0_5 --> alterPersistentCachePartitionRefreshStatement_0_6[REFRESH]:::quoted
    alterPersistentCachePartitionRefreshStatement_0_6 --> alterPersistentCachePartitionRefreshStatement_0_7[PARALLEL]:::quoted
    alterPersistentCachePartitionRefreshStatement_0_7 --> alterPersistentCachePartitionRefreshStatement_0_8[numericConstant]
    alterPersistentCachePartitionRefreshStatement_0_8 --> alterPersistentCachePartitionRefreshStatement_0_9[APPROACH]:::quoted
    alterPersistentCachePartitionRefreshStatement_0_9 --> alterPersistentCachePartitionRefreshStatement_0_10[COPY]:::quoted
    alterPersistentCachePartitionRefreshStatement_0_10 --> alterPersistentCachePartitionRefreshStatement_0_11[TRICKLE]:::quoted
    alterPersistentCachePartitionRefreshStatement_0_11 --> alterPersistentCachePartitionRefreshStatement_0_12[SAMPLE]:::quoted
    alterPersistentCachePartitionRefreshStatement_0_12 --> alterPersistentCachePartitionRefreshStatement_0_13[DEFAULT]:::quoted
    alterPersistentCachePartitionRefreshStatement_0_13 --> alterPersistentCachePartitionRefreshStatement_0_14[WHEN]:::quoted
    alterPersistentCachePartitionRefreshStatement_0_14 --> alterPersistentCachePartitionRefreshStatement_0_15[OBSOLETE]:::quoted
    alterPersistentCachePartitionRefreshStatement_0_15 --> alterPersistentCachePartitionRefreshStatement_0_16[WITHIN]:::quoted
    alterPersistentCachePartitionRefreshStatement_0_16 --> alterPersistentCachePartitionRefreshStatement_0_17[intervalConstant]
    alterPersistentCachePartitionRefreshStatement_0_17 --> alterPersistentCachePartitionRefreshStatement_end((END))

目的

指定したパーティションのすべてのデータを更新します。 オプションについては、alterPersistentCacheRefreshStatementで説明しています。

alterPersistentCacheDropStatement

%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart TD
    alterPersistentCacheDropStatement_start((START))
    alterPersistentCacheDropStatement_start --> alterPersistentCacheDropStatement_0_0[ALTER]:::quoted
    alterPersistentCacheDropStatement_0_0 --> alterPersistentCacheDropStatement_0_1[PERSISTENT]:::quoted
    alterPersistentCacheDropStatement_0_1 --> alterPersistentCacheDropStatement_0_2[CACHE]:::quoted
    alterPersistentCacheDropStatement_0_2 --> alterPersistentCacheDropStatement_0_3[DROP]:::quoted
    alterPersistentCacheDropStatement_0_3 --> alterPersistentCacheDropStatement_0_4[TABLE]:::quoted
    alterPersistentCacheDropStatement_0_4 --> alterPersistentCacheDropStatement_0_5[tableSpec]
    alterPersistentCacheDropStatement_0_5 --> alterPersistentCacheDropStatement_0_6[PARTITION]:::quoted
    alterPersistentCacheDropStatement_0_6 --> alterPersistentCacheDropStatement_0_7[partitionIdentifier]
    alterPersistentCacheDropStatement_0_7 --> alterPersistentCacheDropStatement_0_8[PARTITION]:::quoted
    alterPersistentCacheDropStatement_0_8 --> alterPersistentCacheDropStatement_0_9[partitionIdentifier]
    alterPersistentCacheDropStatement_0_9 --> alterPersistentCacheDropStatement_0_10[DATACONTAINER]:::quoted
    alterPersistentCacheDropStatement_0_10 --> alterPersistentCacheDropStatement_0_11[stringConstant]
    alterPersistentCacheDropStatement_0_11 --> alterPersistentCacheDropStatement_end((END))

目的

テーブルパーティションバージョンに格納されているすべてのファクトをデータベースから、また関連するメタデータをキャッシュリポジトリから、テーブルパーティションの範囲について削除します。 テーブルとパーティションは、table、partition、および/またはdata container句を使用して指定できます。

alterPersistentCacheSetStatement

%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart TD
    alterPersistentCacheSetStatement_start((START))
    alterPersistentCacheSetStatement_start --> alterPersistentCacheSetStatement_0_0[ALTER]:::quoted
    alterPersistentCacheSetStatement_0_0 --> alterPersistentCacheSetStatement_0_1[PERSISTENT]:::quoted
    alterPersistentCacheSetStatement_0_1 --> alterPersistentCacheSetStatement_0_2[CACHE]:::quoted
    alterPersistentCacheSetStatement_0_2 --> alterPersistentCacheSetStatement_0_3[SET]:::quoted
    alterPersistentCacheSetStatement_0_3 --> alterPersistentCacheSetStatement_0_4[FRESH]:::quoted
    alterPersistentCacheSetStatement_0_4 --> alterPersistentCacheSetStatement_0_5[RETENTION]:::quoted
    alterPersistentCacheSetStatement_0_5 --> alterPersistentCacheSetStatement_0_6[FORWARDED]:::quoted
    alterPersistentCacheSetStatement_0_6 --> alterPersistentCacheSetStatement_0_7[INCOMING]:::quoted
    alterPersistentCacheSetStatement_0_7 --> alterPersistentCacheSetStatement_0_8[MESSAGES]:::quoted
    alterPersistentCacheSetStatement_0_8 --> alterPersistentCacheSetStatement_0_9[METADATA]:::quoted
    alterPersistentCacheSetStatement_0_9 --> alterPersistentCacheSetStatement_0_10[RECYCLEBIN]:::quoted
    alterPersistentCacheSetStatement_0_10 --> alterPersistentCacheSetStatement_0_11[DATA]:::quoted
    alterPersistentCacheSetStatement_0_11 --> alterPersistentCacheSetStatement_0_12[MODEL]:::quoted
    alterPersistentCacheSetStatement_0_12 --> alterPersistentCacheSetStatement_0_13[VERSION]:::quoted
    alterPersistentCacheSetStatement_0_13 --> alterPersistentCacheSetStatement_0_14[numericConstant]
    alterPersistentCacheSetStatement_0_14 --> alterPersistentCacheSetStatement_0_15[TOKEN]:::quoted
    alterPersistentCacheSetStatement_0_15 --> alterPersistentCacheSetStatement_0_16[stringConstant]
    alterPersistentCacheSetStatement_0_16 --> alterPersistentCacheSetStatement_0_17[LOGICAL]:::quoted
    alterPersistentCacheSetStatement_0_17 --> alterPersistentCacheSetStatement_0_18[OVERALL]:::quoted
    alterPersistentCacheSetStatement_0_18 --> alterPersistentCacheSetStatement_0_19[PARTITION]:::quoted
    alterPersistentCacheSetStatement_0_19 --> alterPersistentCacheSetStatement_0_20[VIEW]:::quoted
    alterPersistentCacheSetStatement_0_20 --> alterPersistentCacheSetStatement_0_21[NAME]:::quoted
    alterPersistentCacheSetStatement_0_21 --> alterPersistentCacheSetStatement_0_22[PREFIX]:::quoted
    alterPersistentCacheSetStatement_0_22 --> alterPersistentCacheSetStatement_0_23[POSTFIX]:::quoted
    alterPersistentCacheSetStatement_0_23 --> alterPersistentCacheSetStatement_0_24[stringConstant]
    alterPersistentCacheSetStatement_0_24 --> alterPersistentCacheSetStatement_0_25[MAINTAIN]:::quoted
    alterPersistentCacheSetStatement_0_25 --> alterPersistentCacheSetStatement_0_26[booleanConstant]
    alterPersistentCacheSetStatement_0_26 --> alterPersistentCacheSetStatement_0_27[LOAD]:::quoted
    alterPersistentCacheSetStatement_0_27 --> alterPersistentCacheSetStatement_0_28[MY]:::quoted
    alterPersistentCacheSetStatement_0_28 --> alterPersistentCacheSetStatement_0_29[MESSAGES]:::quoted
    alterPersistentCacheSetStatement_0_29 --> alterPersistentCacheSetStatement_0_30[INDEX]:::quoted
    alterPersistentCacheSetStatement_0_30 --> alterPersistentCacheSetStatement_0_31[FACTS]:::quoted
    alterPersistentCacheSetStatement_0_31 --> alterPersistentCacheSetStatement_0_32[HISTORY]:::quoted
    alterPersistentCacheSetStatement_0_32 --> alterPersistentCacheSetStatement_0_33[TABLES]:::quoted
    alterPersistentCacheSetStatement_0_33 --> alterPersistentCacheSetStatement_0_34[booleanConstant]
    alterPersistentCacheSetStatement_0_34 --> alterPersistentCacheSetStatement_0_35[AUTO]:::quoted
    alterPersistentCacheSetStatement_0_35 --> alterPersistentCacheSetStatement_0_36[UPGRADE]:::quoted
    alterPersistentCacheSetStatement_0_36 --> alterPersistentCacheSetStatement_0_37[ONCE]:::quoted
    alterPersistentCacheSetStatement_0_37 --> alterPersistentCacheSetStatement_0_38[alterPersistentCacheSetBackingConnectionString]
    alterPersistentCacheSetStatement_0_38 --> alterPersistentCacheSetStatement_0_39[alterPersistentCacheSetTableOptions]
    alterPersistentCacheSetStatement_0_39 --> alterPersistentCacheSetStatement_0_40[alterPersistentCacheSetDataContainerOptions]
    alterPersistentCacheSetStatement_0_40 --> alterPersistentCacheSetStatement_end((END))

目的

新規テーブルやデータコンテナのデフォルトを含め、キャッシュの一元管理された設定を変更します。

  • Fresh: ロード完了後、ファクトが最新とみなされる秒数です。
  • Retention: 処理後にトリクルロードメッセージを利用可能な状態に保持する秒数です。
  • Metadata: バージョン内の関連ファクトを削除した後、メタデータを利用可能な状態に保持する秒数です。
  • Metadata recyclebin: 削除されたメタデータを利用可能な状態に保持する秒数です。
  • Version: アップグレードスクリプトを再実行するために、データモデルのバージョンを別のバージョンにリセットします。
  • Token: トリクルロードメッセージを取得するためのトークンとして使用される秘密のテキストです。
  • Prefix/postfix: Invantive Data Replicatorが管理するデータベースビューのプレフィックスおよび/またはポストフィックスです。
  • Maintain: テーブルパーティションごと、および/またはテーブル全体でデータベースビューを管理するかどうかを示すインジケーターです。
  • My Messages: カスタムコード用に、受信したトリクルロードメッセージのコピーをdc_my_incoming_messagesに保存するかどうかを示すインジケーターです。
  • Index Tables: データベースビューの検索を高速化するために、ファクトテーブルに非一意インデックスを作成するかどうかです。
  • Auto Upgrade: データモデルのアップグレードを一度実行するかどうかです。
  • Data Container Prefix/postfix: Invantive Data Replicatorが管理する全体ビューのプレフィックスおよび/またはポストフィックスです。

alterPersistentCacheSetBackingConnectionString

%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart LR
    alterPersistentCacheSetBackingConnectionString_start((START))
    alterPersistentCacheSetBackingConnectionString_start --> alterPersistentCacheSetBackingConnectionString_0_0[BACKING]:::quoted
    alterPersistentCacheSetBackingConnectionString_0_0 --> alterPersistentCacheSetBackingConnectionString_0_1[ENCRYPTED]:::quoted
    alterPersistentCacheSetBackingConnectionString_0_1 --> alterPersistentCacheSetBackingConnectionString_0_2[CONNECTION]:::quoted
    alterPersistentCacheSetBackingConnectionString_0_2 --> alterPersistentCacheSetBackingConnectionString_0_3[STRING]:::quoted
    alterPersistentCacheSetBackingConnectionString_0_3 --> alterPersistentCacheSetBackingConnectionString_0_4[stringConstant]
    alterPersistentCacheSetBackingConnectionString_0_4 --> alterPersistentCacheSetBackingConnectionString_end((END))

alterPersistentCacheSetDataContainerOptions

%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart TD
    alterPersistentCacheSetDataContainerOptions_start((START))
    alterPersistentCacheSetDataContainerOptions_start --> alterPersistentCacheSetDataContainerOptions_0_0[DATACONTAINER]:::quoted
    alterPersistentCacheSetDataContainerOptions_0_0 --> alterPersistentCacheSetDataContainerOptions_0_1[stringConstant]
    alterPersistentCacheSetDataContainerOptions_0_1 --> alterPersistentCacheSetDataContainerOptions_0_2[LOGICAL]:::quoted
    alterPersistentCacheSetDataContainerOptions_0_2 --> alterPersistentCacheSetDataContainerOptions_0_3[OVERALL]:::quoted
    alterPersistentCacheSetDataContainerOptions_0_3 --> alterPersistentCacheSetDataContainerOptions_0_4[VIEW]:::quoted
    alterPersistentCacheSetDataContainerOptions_0_4 --> alterPersistentCacheSetDataContainerOptions_0_5[NAME]:::quoted
    alterPersistentCacheSetDataContainerOptions_0_5 --> alterPersistentCacheSetDataContainerOptions_0_6[PREFIX]:::quoted
    alterPersistentCacheSetDataContainerOptions_0_6 --> alterPersistentCacheSetDataContainerOptions_0_7[POSTFIX]:::quoted
    alterPersistentCacheSetDataContainerOptions_0_7 --> alterPersistentCacheSetDataContainerOptions_0_8[stringConstant]
    alterPersistentCacheSetDataContainerOptions_0_8 --> alterPersistentCacheSetDataContainerOptions_end((END))

目的

データコンテナの設定を変更します。

データコンテナに登録される、新しく複製された各テーブルの論理的な全体ビューのプレフィックスとポストフィックスを指定できます。 これは通常、Teamleaderの複数のサブスクリプションやExact Onlineの複数の国など、同じプラットフォームを指す複数のデータコンテナがある場合に行われます。 プレフィックスを指定すると、自動生成される論理的な全体ビューに一意で識別しやすい名前が付けられます。

alterPersistentCacheSetTableOptions

%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart TD
    alterPersistentCacheSetTableOptions_start((START))
    alterPersistentCacheSetTableOptions_start --> alterPersistentCacheSetTableOptions_0_0[TABLE]:::quoted
    alterPersistentCacheSetTableOptions_0_0 --> alterPersistentCacheSetTableOptions_0_1[tableSpec]
    alterPersistentCacheSetTableOptions_0_1 --> alterPersistentCacheSetTableOptions_0_2[LOGICAL]:::quoted
    alterPersistentCacheSetTableOptions_0_2 --> alterPersistentCacheSetTableOptions_0_3[OVERALL]:::quoted
    alterPersistentCacheSetTableOptions_0_3 --> alterPersistentCacheSetTableOptions_0_4[VIEW]:::quoted
    alterPersistentCacheSetTableOptions_0_4 --> alterPersistentCacheSetTableOptions_0_5[MAINTAIN]:::quoted
    alterPersistentCacheSetTableOptions_0_5 --> alterPersistentCacheSetTableOptions_0_6[booleanConstant]
    alterPersistentCacheSetTableOptions_0_6 --> alterPersistentCacheSetTableOptions_0_7[NAME]:::quoted
    alterPersistentCacheSetTableOptions_0_7 --> alterPersistentCacheSetTableOptions_0_8[stringConstant]
    alterPersistentCacheSetTableOptions_0_8 --> alterPersistentCacheSetTableOptions_0_9[PARTITION]:::quoted
    alterPersistentCacheSetTableOptions_0_9 --> alterPersistentCacheSetTableOptions_0_10[VIEW]:::quoted
    alterPersistentCacheSetTableOptions_0_10 --> alterPersistentCacheSetTableOptions_0_11[MAINTAIN]:::quoted
    alterPersistentCacheSetTableOptions_0_11 --> alterPersistentCacheSetTableOptions_0_12[booleanConstant]
    alterPersistentCacheSetTableOptions_0_12 --> alterPersistentCacheSetTableOptions_0_13[NAME]:::quoted
    alterPersistentCacheSetTableOptions_0_13 --> alterPersistentCacheSetTableOptions_0_14[PREFIX]:::quoted
    alterPersistentCacheSetTableOptions_0_14 --> alterPersistentCacheSetTableOptions_0_15[POSTFIX]:::quoted
    alterPersistentCacheSetTableOptions_0_15 --> alterPersistentCacheSetTableOptions_0_16[stringConstant]
    alterPersistentCacheSetTableOptions_0_16 --> alterPersistentCacheSetTableOptions_0_17[INDEX]:::quoted
    alterPersistentCacheSetTableOptions_0_17 --> alterPersistentCacheSetTableOptions_0_18[FACTS]:::quoted
    alterPersistentCacheSetTableOptions_0_18 --> alterPersistentCacheSetTableOptions_0_19[HISTORY]:::quoted
    alterPersistentCacheSetTableOptions_0_19 --> alterPersistentCacheSetTableOptions_0_20[TABLE]:::quoted
    alterPersistentCacheSetTableOptions_0_20 --> alterPersistentCacheSetTableOptions_0_21[booleanConstant]
    alterPersistentCacheSetTableOptions_0_21 --> alterPersistentCacheSetTableOptions_0_22[STATE]:::quoted
    alterPersistentCacheSetTableOptions_0_22 --> alterPersistentCacheSetTableOptions_0_23[OBSOLETE]:::quoted
    alterPersistentCacheSetTableOptions_0_23 --> alterPersistentCacheSetTableOptions_0_24[DROPPED]:::quoted
    alterPersistentCacheSetTableOptions_0_24 --> alterPersistentCacheSetTableOptions_0_25[PARTITION]:::quoted
    alterPersistentCacheSetTableOptions_0_25 --> alterPersistentCacheSetTableOptions_0_26[partitionIdentifier]
    alterPersistentCacheSetTableOptions_0_26 --> alterPersistentCacheSetTableOptions_0_27[APPROACH]:::quoted
    alterPersistentCacheSetTableOptions_0_27 --> alterPersistentCacheSetTableOptions_0_28[COPY]:::quoted
    alterPersistentCacheSetTableOptions_0_28 --> alterPersistentCacheSetTableOptions_0_29[TRICKLE]:::quoted
    alterPersistentCacheSetTableOptions_0_29 --> alterPersistentCacheSetTableOptions_0_30[SAMPLE]:::quoted
    alterPersistentCacheSetTableOptions_0_30 --> alterPersistentCacheSetTableOptions_0_31[LICENSE]:::quoted
    alterPersistentCacheSetTableOptions_0_31 --> alterPersistentCacheSetTableOptions_0_32[CONTRACT]:::quoted
    alterPersistentCacheSetTableOptions_0_32 --> alterPersistentCacheSetTableOptions_0_33[CODE]:::quoted
    alterPersistentCacheSetTableOptions_0_33 --> alterPersistentCacheSetTableOptions_0_34[stringConstant]
    alterPersistentCacheSetTableOptions_0_34 --> alterPersistentCacheSetTableOptions_end((END))

目的

キャッシュのテーブルおよびテーブルパーティション固有の設定を変更します。 ほとんどのオプションはalterPersistentCacheSetStatementと同じですが、テーブルおよびテーブルパーティション固有の変更を目的としています。 追加のオプションは次のとおりです:

  • State: 以前の状態にあるすべてのテーブルパーティションバージョンを、特定の最終状態に移行します。
  • Approach: 複製の戦略です。