Documentation
Get started

Run your first analysis

Analyze a slow SQL query in paste mode without connecting a database.

5 min read

Before you start

You need a dbtempo account and one slow SQL query or its EXPLAIN output. Paste mode is available without installing the CLI or storing database credentials. A whole slow query log works too — see Upload a slow query log.

Run the analysis

  1. Start a new thread. Sign in and select New thread in the sidebar.
  2. Choose Paste SQL or EXPLAIN. This is the first action on an empty thread and is available on every plan.
  3. Paste and send. Add the raw query, EXPLAIN, or EXPLAIN ANALYZE output to the composer and send it.
  4. Follow the query card. dbtempo runs deterministic rules first and uses an AI tier only when more analysis is needed. The stage indicator reports the current step.

Review the result

Review the fix, confidence, and evidence together. Executable migration SQL is available only for eligible findings; other findings show suggested SQL, a rewrite, or review steps.

A CLI-backed run can offer Apply via CLI for executable SQL. Otherwise, copy the suggestion for your own migration workflow. Mark the recommendation Later or Dismiss when appropriate.

When dbtempo needs schema, index, statistics, or execution-plan context, follow the context request card to connect a database, run the displayed read-only SQL yourself, or continue with query-text-only analysis.

A completed query analysis with a diagnosis and proposed index
A completed result keeps the diagnosis, evidence, and proposed fix together.

Next step

To have dbtempo find slow queries for you instead of bringing them one at a time, continue with Set up continuous monitoring with a project.