About materialized views
You can materialize a View to improve its performance.
Introduction to materialized views
Views can become slow as your data volume and the number of Views stacked on top of one another grow. This happens because when doing a search, each View is computed on the fly. To improve the performance of a View, you can materialize it. Materializing pre-computes the View and stores it in memory, just like a table. You can expect a Materialized View to be three to six times faster than a View that is not materialized, on average.
To materialize a View, you must have the Can administer ThoughtSpot privilege.
The number of Materialized Views you can create is limited to 50, because Materialized Views take up space in memory. |
Row Level Security does not apply to Materialized Views. All users will see the same data when using the Materialized View as a data source. |
These are the operations you can do on a View:
-
Materialize a View to improve performance,
-
Dematerialize a View to save space, or
-
Refresh a View to synchronize its data with the latest data load to the underlying tables.
-
Check the status of a View.
After materializing, a View can have one of three statuses. You can see the status of a View by selecting Data, clicking on Views, and finding your View in the list. The status is shown next to the name of your View.
Materialization status
These are the statuses a View can have:
Status | Description | Action |
---|---|---|
Queued |
View is waiting to be materialized. |
Click Update status. |
In Progress |
View is being materialized. |
Click Update status. Wait for materialization to finish. |
Materialized |
View has been materialized into memory. |
You can now search the Materialized View. |
Stale |
View has become out of sync with the data in the tables that make it up, usually due to an incremental data load. |
Refresh the View by clicking Refresh Data. |
Unknown |
View status could not be determined. |
Click Update status. |
Error |
An error occurred. |
Refresh the View by clicking Refresh Data. Optionally run a report. |
-
You can refresh data only if you have the Can administrate ThoughtSpot privilege.
Freshness of data
Your View can become stale, if it isn’t refreshed when the data in the tables used to create it is updated. There are two ways to refresh the data:
Here are some conditions that could lead to a View becoming stale:
-
Changes to the View definition
-
Changes to the fields used in the View
-
Changes to the join relationships used in the View
-
Change to formulas in the View
-
Change the datatypes in the underlying tables
Related information