SingleStore Managed Service

mv_activities_cumulative

The mv_activities_cumulative view in the information_schema database is a high-level summary profile of completed and currently running tasks on all nodes of the cluster.

It holds a row per high-level activity H. Each row describes tasks which have completed or are currently running, and which are either instances of the high level activity H, or else instances of an activity L whose aggregator activity name is the name of H. It reports the sum of the profiling statistics of each task in the set, as collected over its lifetime.

The effect of grouping the instances of multiple activities together is mainly to group all tasks associated with a query, across all partitions, into a single row.

For cross-database queries, activities in this table are tracked in relation to the context database of the local query. For activities on an aggregator, this is the context database of the session. For activities on leaves, this is the context database chosen by the optimizer for each part of the query. In general, leaf activities occur on the database that stores the table(s) being queried.

mv_activities_cumulative may only be queried while connected to an aggregator node.

We recommend against extensive use of this table. It doesn’t accurately describe past system behavior because it doesn’t include all completed instances. This is because historical task statistics may be discarded by SingleStore DB at unspecified times.

Column name

Description

activity_type

The type of the activities.

activity_name

An ID shared by all instances of the high level activity. This ID is often human-readable, but does not include the query text for query tasks. See mv_queries for the raw query text.

database_name

The name of the database associated with the activity, or NULL if none could be assigned.

last_finished_timestamp

The timestamp of the most recent completion of an instance of this activity.

run_count

The number of running instances of the activity.

success_count

The number of successfully completed instances of the activity.

failure_count

The number of unsuccessfully completed instances of the activity.

SIMPLIFIED STATISTICS

This view contains all simplified statistics columns.