Versioning on a DirectQuery connector is less powerful than on a Datastore.Documentation Index
Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
Use this file to discover all available pages before exploring further.
Old versions access
Not all external databases support native versioning (i.e. time travel). For these databases you can only query the last snapshot of the data.Non-time travel databases are subject to de-synchronization issues (see heading below).
To avoid such issues, it’s possible to set up a mechanism to emulate time-travel.
| Database | Native Time travel Support | Emulated Time travel Support |
|---|---|---|
| Amazon Redshift | ||
| ClickHouse | ||
| Databricks | ||
| Dremio | ||
| Google BigQuery | ||
| Microsoft Azure Synapse | ||
| Microsoft SQL Server | ||
| Snowflake |
- BigQuery
- Databricks
- Snowflake
Time travel discoveries
DirectQuery will run discovery queries on the database to gather the information about the last modification on the tables. In theory, these queries should be fast as they just request some metadata. However, they can sometimes be slow on some external databases and they can even timeout. It is possible to set a specific timeout for the time travel discovery queries to avoid this issue:- BigQuery
- Databricks
- Snowflake
Data refresh
Unlike the datastore, external databases are not able to push data change event.The user must warn the DirectQuery connector that a new version of the data is available. There are two ways to do this:
- If you know the scope of your changes you can use an Incremental Refresh.
- If you do not know the scope of the change, you can trigger a full refresh.
During these operations, the cube is still queryable.
De-synchronization issue with non-time travel databases
Atoti cube leverages database streams to maintain some versioned data structures:- Hierarchy member tree
- Aggregate providers
De-synchronization between Atoti data structures and the external database
On a database that does not support time-travel, on data change and before the refresh of the application, aggregate providers are not up-to-date.So the measures computed from the primitive measures of aggregate provider are outdated too.
However, measures which are not computed from aggregate provider measures (i.e. computed by a database query) are up-to-date.
This could lead to inconsistent results if you are mixing up outdated and up-to-date measures. For instance, let’s take an initial version V1 and an update in the database changing the data to a new version V2.
Before triggering the refresh in Atoti application, the aggregate provider is still in state V1 but the database connector has no more access to the V1 data.
The connector will return the data from the current state of the database (which is V2).