What's new? | Help | Directory | Sign in
Google
                
Search
for
Updated Aug 19, 2008 by mdcallag
UserTableMonitoring  
Activity monitoring per table, account and index

Introduction

We have added code to measure database activity and aggregate the results per account, table and index. We have also added SQL statements to display these values.

One of these days we will integrate this with the information schema.

Details

Note that rows changed includes rows from insert, update, delete and replace statements.

The commands are:

SHOW USER_STATISTICS

This displays resource consumption for all sessions per database account:

SHOW CLIENT_STATISTICS

This has the same values as SHOW USER_STATISTICS but they are aggregated by client IP address rather than by database account name.

SHOW TABLE_STATISTICS

This displays the number of rows fetched and changed per table. It also displays the number of rows changed multiplied by the number of indexes on the table.

SHOW INDEX_STATISTICS

This displays the number of rows fetched per index. It can be used to find unused indexes.

Flush commands

Each of the flush commands clears the counters used for the given SHOW command.


Sign in to add a comment