Instruction « Alter Persistent Cache »
Objet
Outre un cache en mémoire valable pendant toute la durée d’une session, Invantive UniversalSQL propose un cache intégré stockant les données de manière persistante à l’aide d’une base de données relationnelle sur site ou dans le cloud, telle que SQL Server ou PostgreSQL. Lorsqu’il est configuré, Invantive UniversalSQL tente d’abord de trouver des données suffisamment récentes dans le cache. Cela réduit le nombre de chargements de données à partir de conteneurs de données lents, tels que certaines plateformes cloud. En général, le gain de performances lorsque les lignes peuvent être entièrement récupérées à partir d’un cache se situe entre un facteur 25 et 2.500.
Invantive UniversalSQL gère lui-même la structure et le contenu des tables dans la base de données relationnelle utilisée comme Data Cache. Lors de la première utilisation, il suffit de fournir une base de données vide. Les plateformes prises en charge sont SQL Server, Oracle, PostgreSQL et MySQL. Invantive UniversalSQL installe un dépôt composé d’une douzaine de tables. Les tables du dépôt ont des noms commençant par « dc_ ». La plupart des tables du dépôt sont accompagnées d’une View portant le même nom, à l’exception d’un « r » final. Les vues du dépôt regroupent toutes les tables principales afin de faciliter l’analyse à partir de la base de données stockant les faits
Pour chaque version de partitionnement de table, une « table de faits » est créée. Une table de faits contient une copie complète des lignes extraites du conteneur de données. Les tables de faits portent des noms commençant par « dcd_ », suivis d’un hachage unique indiquant la version de partitionnement de la table. Si nécessaire, des objets de base de données supplémentaires sont gérés, tels que des Index, afin d’améliorer les performances. Comme pour les noms des tables de faits, tous les noms de colonnes sont également hachés selon un algorithme intégrant le nom original de la colonne. Ces tables de faits ne sont pas destinées à une utilisation directe via du SQL natif.
Chaque table de faits possède un état unique parmi les états suivants, l’état « Prêt » indiquant la version actuellement en vigueur :
- Initialisation (« I ») : la table des faits sera créée.
- Création de vues (« V ») : des vues logiques seront créées.
- Préparée (« P ») : la table de faits a été créée, mais ne contient encore aucune ligne.
- Initialisation (« S ») : la table des faits est initialisée avec le contenu de la version précédemment en vigueur.
- Chargement (« L ») : chargement de nouveaux faits à partir d’un conteneur de données à l’aide de l’algorithme « water shed » ou d’un autre algorithme.
- Prêt (« R ») : la table de faits est disponible et c’est celle-ci qui est actuellement utilisée.
- Obsoleted (« O ») : la table de faits existe toujours, mais les données ont dépassé leur délai de conservation. Souvent, une version plus récente est désormais d’actualité.
- Supprimé (« D ») : la table de faits n’existe plus, mais les métadonnées sont toujours présentes dans les tables du Dépôt.
Le cache persistant de la base de données peut être utilisé avec du SQL natif lorsqu’il est étendu par Invantive Data Replicator. Invantive Data Replicator crée et gère une vue de base de données (appelée « vue de partition ») pour la version actuelle de la partition de table. De même, cette commande permet de créer une « View » affichant les lignes de toutes les partitions correspondant aux versions actuellement en vigueur pour chaque partition. Invantive Data Replicator offre un Operational Data Store hautement performant et capable de traiter de grands volumes, avec un minimum d’effort.
Les vues globales sont généralement utilisées à des fins de consolidation, afin de regrouper des données provenant de plusieurs entreprises ou personnes.
Syntaxe
%%{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))
Objet
L'instruction « purge » conserve les versions de partitionnement de table existantes. Il peut purger les versions de partition de table de plusieurs façons :
- prêt : sélectionne les versions de partitionnement de table dont l’état est « Prêt ». Les versions de partition de table passent à l’état « Obsolete ». Les faits ne sont pas supprimés.
- obsolete : sélectionne les versions de partition de table dont l’état est « Obsolete ». Les faits associés à ces tables sont supprimés. Les versions de partition de table passent à l’état « Supprimé ». Les faits supprimés peuvent être utilisés dans des Queries dont l’exécution a commencé alors qu’ils se trouvaient à l’état « Ready ». Les faits peuvent être supprimés en toute sécurité lorsque la plateforme de base de données prend en charge la lecture des données issues de lignes déjà supprimées, comme Oracle. La purge des faits obsolètes est souvent effectuée en arrière-plan, indépendamment de l’actualisation, afin de réduire la Runtime de cette dernière, puisque la suppression des données a déjà été effectuée avant l’actualisation.
- supprimable : sélectionne les versions de partitionnement de table dont l’état est « Supprimé ». Les faits sont supprimés lorsqu’il en reste encore en présence de l’état « supprimé ». Cette opération ne sera utile que dans des conditions exceptionnelles, car le statut « supprimé » indique que les faits ont déjà été supprimés. Les versions de partitionnement de table restent dans l’état « Supprimé ».
- inconnu : effectue une Query dans la base de données pour trouver les tables respectant la convention de nommage « dcd... » ou « dcs... ». Toute table non enregistrée dans le Dépôt est supprimée de la base de données. Cette opération ne sera utile que dans des circonstances exceptionnelles, par exemple lorsque le dépôt a été supprimé par inadvertance ou modifié de manière incorrecte.
- all : exécute d’abord la variante « unknown », puis la variante « droppable ». Cela ne sera utile que dans des conditions exceptionnelles.
La spécification d’un conteneur de données limite la portée des versions du partitionnement des tables au conteneur de données indiqué.
Paquetages PSQL
Invantive PSQL est fourni avec un certain nombre de paquetages prédéfinis. Celles-ci peuvent être interrogées à l'aide de SystemPackages@DataDictionary et 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))
Objet
Le chargement progressif (trickle loading) est une stratégie avancée permettant de mettre à jour efficacement et rapidement les données répliquées. Cela nécessite que toutes les modifications (insertion, mise à jour et suppression) apportées aux données répliquées soient enregistrées sous forme de messages d’événement, éventuellement avec un certain délai.
L’enregistrement des modifications peut être activé sur certaines plateformes à l’aide de webhooks. La configuration des webhooks peut être effectuée à l’aide de cette instruction. Si aucune valeur n’est spécifiée, le code du contrat de licence de l’abonnement actuel sera utilisé.
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))
Objet
Cette instruction déclenche l'actualisation des données répliquées de tous les conteneurs de données connectés ou d'un alias de conteneur de données spécifique. Une actualisation des données répliquées peut également être déclenchée en exécutant une instruction SQL spécifiant l’utilisation de données répliquées d’un certain âge.
En mode par défaut (sans « force »), une actualisation n’est effectuée sur les données spécifiées que lorsque l’ancienneté des données répliquées dépasse l’ancienneté maximale configurée. Il est possible de spécifier un décalage par rapport à la durée de vie maximale configurée à l’aide de la clause « when obsolete within ». Avec un rafraîchissement forcé, les données répliquées sont toujours remplacées par une version récente des données source.
Le nombre maximal de processus parallèles pour la réplication des données peut être configuré à l’aide de la clause « parallel » afin d’augmenter le débit et de réduire la Runtime du processus de réplication.
Par défaut, l’approche configurée sur chaque partition de table est utilisée pour mettre à jour la réplique. Il est toutefois possible de spécifier une approche différente. Cette opération est généralement effectuée après avoir basculé une partition de table en chargement progressif afin d’exécuter un processus de réplication ponctuel selon l’approche par copie, garantissant ainsi qu’aucune modification n’est passée inaperçue.
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))
Objet
Charge toutes les tables disponibles dans l’ensemble des conteneurs de données connectés dans le cache. Généralement utilisées à des fins de démonstration.
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))
Objet
Actualiser toutes les données d’une table spécifiée. Les options sont expliquées à l'adresse 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))
Objet
Actualiser toutes les données d’une partition spécifiée. Les options sont expliquées à l'adresse 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))
Objet
Supprime de la base de données tous les faits stockés dans les versions des partitions de table, ainsi que les métadonnées associées du dépôt de cache, pour une plage de partitions de table. Les tables et les partitions peuvent être spécifiées à l’aide des clauses table, partitionnement et/ou 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))
Objet
Modifier les paramètres gérés de manière centralisée pour le cache, y compris les valeurs par défaut pour les nouvelles tables ou les nouveaux conteneurs de données.
- Fresh : nombre de secondes pendant lesquelles les faits sont considérés comme récents après la fin du chargement.
- Rétention : nombre de secondes pendant lesquelles les messages de chargement progressif restent disponibles après leur traitement.
- Métadonnées : nombre de secondes pendant lesquelles les métadonnées restent disponibles après la suppression des faits associés dans la version.
- Corbeille des métadonnées : nombre de secondes pendant lesquelles les métadonnées supprimées restent disponibles.
- Version : réinitialise la version du Modèle de données à une autre version afin de réexécuter les scripts de mise à niveau.
- Token : texte secret utilisé comme jeton pour récupérer les messages de chargement progressif.
- Préfixe/suffixe : préfixe et/ou suffixe pour les vues de base de données gérées par Invantive Data Replicator.
- Maintain : indicateur permettant de déterminer s’il faut conserver les vues de base de données par partition de table et/ou par table globale.
- Mes messages : indicateur permettant de déterminer s’il faut placer une copie des messages entrants de chargement progressif dans dc_my_incoming_messages à des fins de code personnalisé.
- Tables d’index : indique s’il faut créer des index non uniques sur les tables de faits afin d’accélérer la récupération des données dans les views de la base de données.
- Mise à niveau automatique : indique s’il faut exécuter une mise à niveau du Modèle de données une seule fois.
- Préfixe/suffixe du conteneur de données : préfixe et/ou suffixe pour les vues globales gérées par 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))
Objet
Modifie les paramètres d’un conteneur de données.
Il est possible de spécifier le préfixe et le suffixe de la vue d’ensemble logique de chaque nouvelle table répliquée enregistrée dans le conteneur de données. Cette opération est généralement effectuée lorsqu’il existe plusieurs conteneurs de données pointant vers la même plateforme, comme plusieurs abonnements sur Teamleader ou plusieurs pays Exact Online. La spécification d’un préfixe garantit que les vues globales logiques générées automatiquement portent des noms uniques et reconnaissables.
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))
Objet
Modifier les paramètres du cache spécifiques aux tables et aux partitions de table. La plupart des options sont identiques à celles de alterPersistentCacheSetStatement, mais sont destinées à des écarts spécifiques aux tables ou aux partitions de table. Les options supplémentaires sont les suivantes :
- État : déplace toutes les versions de partitionnement de table dont l’état est antérieur vers un état final spécifique.
- Approche : stratégie de réplication.