Important
Self-managed SingleStore will soon transition from version 9.1 RC to version 10. This new semantic versioning scheme will provide SingleStore with finer control over engine and feature releases that were not possible with the current versioning scheme.
In the interim, SingleStore 9.1 RC can be used to preview, evaluate, and provide feedback on the new and upcoming features in SingleStore 10 prior to its general availability. Ahead of this transition, SingleStore 9.0 is recommended for production workloads, which can later be upgraded to SingleStore 10.
MV_ COLLECTED_ ROW_ CHANGE_ COUNTS
This view displays the best-effort counter for the number of changes that have been observed for the table partitions over time, and are persisted to disk.
More specifically, this view contains the number of row changes (inserts, updates, and deletes) that have been applied to the table as a destination.
The write behavior to the view is controlled via the following engine variables: change_ and background_
|
Column name |
Description |
|---|---|
|
|
The name of the table. |
|
|
The name of the database containing the table. |
|
|
The |
|
|
The total cumulative number of rows changed for this table on this partition. |
|
|
The last recorded change count, when the statistics collection was triggered based on the metadata. |
An example query related to this view:
SELECT table_name, database_name, SUM(TOTAL_CHANGES), SUM(LAST_ANALYZED_TOTAL_CHANGES) FROM MV_COLLECTED_ROW_CHANGE_COUNTS;
+------------+---------------+---------------------+----------------------------------+
| table_name | database_name | sum (TOTAL_CHANGES) | sum(LAST_ANALYZED_TOTAL_CHANGES) |
+------------+---------------+---------------------+----------------------------------+
| t | db1 | 8 | 8 |
+------------+---------------+---------------------+----------------------------------+Last modified: