Skip to main content

Database Samples

The Samples tab displays individual query execution events captured from your databases. Unlike the aggregated Queries view, Samples shows each execution with its exact timestamp, full SQL statement, and the database instance it ran on.

Database Samples

Samples Table

ColumnDescription
TimeExact timestamp of the execution.
StatementNormalized SQL statement (displayed in monospace font).
Database InstanceThe host the query ran on.
UserThe database user that executed the query.
Wait Event GroupThe wait-event category — color-coded badges for CPU, IO, Network, and Lock.
DatabaseThe database name.
DurationExecution duration, color-coded by severity.
ApplicationThe client application name (if reported).
StateCurrent state of the query (e.g., active, idle).
tip

The table shows the latest 1,000 samples. If the limit is reached, a note appears above the table. Narrow the time range to load more samples.

Filters

The left-hand panel provides:

  • Host — Filter by database host.
  • Database — Filter by database name.
  • User — Filter by the database user.
  • Tables — Filter by referenced table names.
  • Commands — Filter by SQL command type (e.g., SELECT, INSERT).

Use the search bar to filter samples by SQL text, host, database, or user.

Click to Drill Down

Click any sample row to open a detail drawer showing the full query text, execution plan (when available), and contextual details like client application name and user.

Use Cases

  • Debug slow queries — Find specific executions that were abnormally slow and inspect their details.
  • Audit activity — Review which queries ran at a specific time against a specific database.
  • Investigate deadlocks — Examine the exact statements involved in a deadlock event.
  • Validate deployments — After a schema migration, verify that new query patterns appear as expected.

Support

If you have any questions or need assistance, please contact us via our help chat app available on the Support link in the sidebar, or by reaching out to support@oodle.ai.