Alter Persistent Cache Statement
Syfte
Förutom en cache i minnet som gäller under en session erbjuder Invantive UniversalSQL en integrerad cache som lagrar data permanent i en lokal eller molnbaserad relationsdatabas, till exempel SQL Server eller PostgreSQL. När den har konfigurerats försöker Invantive UniversalSQL först hitta tillräckligt färska data i cachen. Detta minskar antalet dataladdningar från långsamma datakällor, till exempel vissa molnplattformar. Generellt sett ligger prestandaökningen när raderna helt kan hämtas från en cache mellan en faktor 25 och 2.500.
Invantive UniversalSQL hanterar själv tabellstrukturen och tabellinnehållet i relationsdatabasen som används som datacache. Vid första användningen behöver du bara tillhandahålla en tom databas. Plattformar som stöds är bland annat SQL Server, Oracle, PostgreSQL och MySQL. Invantive UniversalSQL installerar ett arkiv bestående av ett dussin tabeller. Arkivtabellerna har namn som börjar med 'dc_'. De flesta arkivtabeller har en vy med samma namn, men med ett avslutande 'r'. Arkivvyerna sammanfogar alla huvudtabeller för enklare analys inifrån databasen som lagrar fakta
För varje version av tabellpartition skapas en så kallad 'faktatabell'. En faktatabell innehåller en fullständig kopia av raderna som hämtats från datakällan. Faktatabeller har namn som börjar med 'dcd_', följt av en unik hash som anger versionen av tabellpartitionen. Vid behov underhålls ytterligare databasobjekt, till exempel index, för att förbättra prestandan. Precis som för namnen på faktatabeller hashas även alla kolumnnamn, baserat på en algoritm som inkluderar det ursprungliga kolumnnamnet. Dessa faktatabeller är inte avsedda för direkt användning med native SQL.
Varje faktatabell har ett unikt tillstånd från följande tillstånd, där tillståndet 'Ready' anger den aktuella versionen:
- Initierar ('I'): faktatabellen kommer att skapas.
- Vyskapande ('V'): logiska vyer kommer att skapas.
- Förberedd ('P'): faktatabellen har skapats men innehåller ännu inga rader.
- Fyllning ('S'): faktatabellen fylls med innehållet från den tidigare aktuella versionen.
- Laddar ('L'): nya fakta laddas från datakällan med hjälp av water shed eller en annan algoritm.
- Klar ('R'): faktatabellen är tillgänglig och är den aktuella som ska användas.
- Inaktuell ('O'): faktatabellen finns fortfarande, men datan har passerat sin bevarandeperiod. Ofta är en nyare version nu aktuell.
- Borttagen ('D'): faktatabellen finns inte längre, men metadata finns kvar i arkivtabellerna.
Den permanenta cachen i databasen kan användas med native SQL när den utökas med Invantive Data Replicator. Invantive Data Replicator skapar och underhåller databasvyer (en så kallad 'partitionsvy') för den nu aktuella versionen av tabellpartitionen. På motsvarande sätt kan den skapa en 'övergripande vy' som visar raderna över alla partitioner för de nu aktuella versionerna per partition. Invantive Data Replicator tillhandahåller med litet arbete en operativ datalagring med hög prestanda och hög volym.
De övergripande vyerna används vanligtvis för konsolidering, där data från flera företag eller personer samlas.
Syntax
%%{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))
Syfte
Med purge-satsen underhålls befintliga versioner av tabellpartitioner. Den kan rensa versioner av tabellpartitioner på flera sätt:
- ready: väljer versioner av tabellpartitioner i tillståndet 'Ready'. Versionerna av tabellpartitioner övergår till tillståndet 'Obsolete'. Fakta raderas inte.
- obsolete: väljer versioner av tabellpartitioner i tillståndet 'Obsolete'. Fakta för dessa raderas. Versionerna av tabellpartitioner övergår till tillståndet 'Dropped'. Fakta som raderas kan ha använts i frågor som startade när de var i tillståndet 'Ready'. Fakta kan raderas säkert när databasplattformen stöder läsning av data från rader som redan raderats, till exempel Oracle. Rensning av inaktuella fakta används ofta som en bakgrundsuppgift, separat från uppdateringen, för att minska uppdateringens körtid, eftersom raderingen av data redan har utförts före uppdateringen.
- droppable: väljer versioner av tabellpartitioner i tillståndet 'Dropped'. Fakta raderas när det fortfarande finns fakta trots tillståndet Dropped. Detta är endast användbart under exceptionella förhållanden, eftersom tillståndet Dropped visar att fakta redan har raderats. Versionerna av tabellpartitioner ligger kvar i tillståndet 'Dropped'.
- unknown: frågar databasen efter tabeller som matchar namnkonventionen 'dcd...' eller 'dcs...'. Alla tabeller som inte är registrerade i arkivet tas bort från databasen. Detta är endast användbart under exceptionella förhållanden, till exempel när arkivet oavsiktligt har tagits bort eller felaktigt ändrats.
- all: utför först varianten "unknown" och därefter varianten "droppable". Detta är endast användbart under exceptionella omständigheter. Detta är endast användbart under exceptionella omständigheter.
Angivande av en datacontainer begränsar omfånget av tabellpartitionsversioner till den angivna datacontainern.
PSQL-paket
Invantive PSQL levereras med ett antal fördefinierade paket. Dessa kan efterfrågas med SystemPackages@DataDictionary och 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))
Syfte
Trickle loading är en avancerad strategi för att effektivt och snabbt uppdatera de replikerade data. Det kräver att alla ändringar (infogning, uppdatering och borttagning) av de replikerade data registreras som händelsemeddelanden, eventuellt med en fördröjning.
Registreringen av ändringar kan aktiveras på utvalda plattformar med hjälp av webhooks. Konfiguration av webhooks kan göras med hjälp av denna sats. Om inget anges används licensavtalskoden för den aktuella prenumerationen.
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))
Syfte
Denna sats utlöser uppdatering av replikerade data för alla anslutna eller en specifik datacontaineralias. En uppdatering av de replikerade data kan också utlösas genom att köra en SQL-sats som anger användning av replikerade data med en specifik ålder.
I standardläge (utan 'force') utförs en uppdatering på de angivna data endast när åldern på de replikerade data överstiger den konfigurerade maximiåldern. En förskjutning av den konfigurerade maximiåldern kan anges med hjälp av satsen 'when obsolete within'. Vid en tvingad uppdatering ersätts de replikerade data alltid med en aktuell version av källdata.
Det största antalet parallella processer för att replikera data kan konfigureras med hjälp av satsen 'parallel' för att öka genomströmningen och minska körtiden för replikeringsprocessen.
Som standard används den metod som konfigurerats för varje tabellpartition för att uppdatera repliken. Men en avvikande metod kan anges. Detta görs vanligtvis efter att en tabellpartition har växlats till trickle loading för att köra en engångsreplikering med kopieringsmetoden, vilket effektivt säkerställer att inga ändringar har gått obemärkta förbi.
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))
Syfte
Läser in alla tillgängliga tabeller från alla anslutna datacontainrar i cacheminnet. Används vanligtvis för demonstrationer.
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))
Syfte
Uppdaterar alla data i en angiven tabell. Alternativen förklaras under 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))
Syfte
Uppdaterar alla data i en angiven partition. Alternativen förklaras under 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))
Syfte
Tar bort alla fakta som lagrats i tabellpartitionsversioner från databasen och tillhörande metadata från cacheförvaret för ett intervall av tabellpartitioner. Tabellerna och partitionerna kan anges med hjälp av satsen table, partition och/eller 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))
Syfte
Ändra centralt underhållna inställningar för cacheminnet, inklusive standardvärden för nya tabeller eller datacontainrar.
- Fresh: antal sekunder under vilka fakta betraktas som aktuella efter slutförd inläsning.
- Retention: antal sekunder under vilka trickle loading-meddelanden finns tillgängliga efter bearbetning.
- Metadata: antal sekunder under vilka metadata finns tillgängliga efter att de tillhörande fakta i versionen tagits bort.
- Metadata recyclebin: antal sekunder under vilka borttagna metadata finns tillgängliga.
- Version: återställer datamodellversionen till en annan version för att köra om uppgraderingsskript.
- Token: hemlig text som används som token för att hämta trickle loading-meddelanden.
- Prefix/postfix: prefix och/eller postfix för databasvyer som underhålls av Invantive Data Replicator.
- Maintain: indikator för om databasvyer ska underhållas per tabellpartition och/eller för hela tabellen.
- My Messages: indikator för om en kopia av inkommande trickle loading-meddelanden ska placeras i dc_my_incoming_messages för egen kod.
- Index Tables: om icke-unika index ska skapas på faktatabellerna för snabbare hämtning via databasvyer.
- Auto Upgrade: om en uppgradering av datamodellen ska köras en gång.
- Data Container Prefix/postfix: prefix och/eller postfix för översiktsvyer som underhålls av 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))
Syfte
Ändrar inställningar för en datacontainer.
Prefixet och postfixet för den logiska översiktsvyn för varje ny replikerad tabell som registrerats i datacontainern kan anges. Detta görs vanligtvis när flera datacontainrar pekar på samma plattform, till exempel flera prenumerationer på Teamleader eller flera länder i Exact Online. Ett prefix säkerställer att de automatiskt genererade logiska översiktsvyerna får unika och igenkännbara namn.
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))
Syfte
Ändra tabell- och tabellpartitionsspecifika inställningar för cacheminnet. De flesta alternativ är identiska med dem i alterPersistentCacheSetStatement, men är avsedda för avvikelser specifika för tabell/tabellpartition. Ytterligare alternativ är:
- State: flyttar alla tabellpartitionsversioner med ett tidigare tillstånd till ett specifikt sluttillstånd.
- Approach: replikeringsstrategi.