• Document Database Service

  1. Help Center
  2. Document Database Service
  3. User Guide
  4. Monitoring
  5. Slow Query Log

Slow Query Log

Slow query logs record statements whose execution period exceeds the value of slowms (100 ms by default), allowing you identify and optimize slowly executed statements.


  1. Log in to the DDS console.
  2. On the Instance Management page, click the target DB instance.
  3. In the navigation pane on the left, click Slow Query Logs.
  4. On the displayed page, click Slow Query Logs. Then, view the log details.

    • Log records of all shards of a cluster instance
    • Log records of all nodes of a replica set instance
    • Log records of a node in different time periods
    • Statements of the following level
      • All statement type
      • INSERT
      • QUERY
      • UPDATE
      • REMOVE
      • GETMORE
      • COMMAND