STATEMENT_COUNT
Displays statistics about five types of running statements (SELECT, INSERT, UPDATE, DELETE, and MERGE INTO) as well as DDL, DML, and DCL statements on the current node of the database, as described in Table 1.
An administrator can query the STATEMENT_COUNT view to view the statistics of all users on the current node. When the database or the node is restarted, the statistics are cleared and the counting restarts. The system counts when a node receives a query, including queries inside the database. For example, when the primary database node receives a query, it is counted on the database node though multiple queries are delivered the database node.
Name |
Type |
Description |
---|---|---|
node_name |
text |
Database process name. |
user_name |
text |
Username. |
select_count |
bigint |
Statistical result of the SELECT statements. |
update_count |
bigint |
Statistical result of the UPDATE statements. |
insert_count |
bigint |
Statistical result of the INSERT statements. |
delete_count |
bigint |
Statistical result of the DELETE statements. |
mergeinto_count |
bigint |
Statistical result of the MERGE INTO statements. |
ddl_count |
bigint |
Number of DDL statements. |
dml_count |
bigint |
Number of DML statements. |
dcl_count |
bigint |
Number of DCL statements. |
total_select_elapse |
bigint |
Total response time of SELECT statements (unit: μs). |
avg_select_elapse |
bigint |
Average response time of SELECT statements (unit: μs). |
max_select_elapse |
bigint |
Maximum response time of SELECT statements (unit: μs). |
min_select_elapse |
bigint |
Minimum response time of SELECT statements (unit: μs). |
total_update_elapse |
bigint |
Total response time of UPDATE statements (unit: μs). |
avg_update_elapse |
bigint |
Average response time of UPDATE statements (unit: μs). |
max_update_elapse |
bigint |
Maximum response time of UPDATE statements (unit: μs). |
min_update_elapse |
bigint |
Minimum response time of UPDATE statements (unit: μs). |
total_insert_elapse |
bigint |
Total response time of INSERT statements (unit: μs). |
avg_insert_elapse |
bigint |
Average response time of INSERT statements (unit: μs). |
max_insert_elapse |
bigint |
Maximum response time of INSERT statements (unit: μs). |
min_insert_elapse |
bigint |
Minimum response time of INSERT statements (unit: μs). |
total_delete_elapse |
bigint |
Total response time of DELETE statements (unit: μs). |
avg_delete_elapse |
bigint |
Average response time of DELETE statements (unit: μs). |
max_delete_elapse |
bigint |
Maximum response time of DELETE statements (unit: μs). |
min_delete_elapse |
bigint |
Minimum response time of DELETE statements (unit: μs). |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot