Query performance, diagnosed

Find the slow query.
Get the exact fix.

Pinpoint reads your real query plans, ranks what is actually costing you milliseconds, and hands back the index or rewrite that makes it fast.

−94%
p95 latency on the top offender
11min
median time to first fix
orders_with_items.sql
EXPLAIN ANALYZE
BEFORE 842 ms
Seq Scan on order_items  (rows=2.1M)
  Filter: (order_id = $1)
  Rows Removed by Filter: 2,098,400
AFTER · suggested index applied 51 ms
Index Only Scan using idx_items_order
  Index Cond: (order_id = $1)
  Heap Fetches: 0
CREATE INDEX idx_items_order ON order_items (order_id);
16.5× faster

Slow queries don't announce themselves.

They hide behind an ORM, surface as a flat dashboard, and only bite under load. The plan already knows what's wrong. It just isn't easy to read.

N+1 query ×147 calls
for user in users:
  user.posts.all()
  # 1 query → 148

One innocent loop fans out into hundreds of round-trips.

Missing index 2.1M rows scanned
WHERE order_id = $1
Seq Scan · cost=0..48201
Rows Removed: 2,098,400

A full scan where a single index would touch one page.

Disk sort work_mem spill
Sort Method: external merge
  Disk: 184MB
ORDER BY created_at DESC

A sort that spilled to disk because it couldn't fit in memory.

Three steps from connected to fast.

Read-only connection. Nothing leaves your network without a key you hold.

  1. 01

    Connect

    Point Pinpoint at a read replica or staging DB. Postgres, MySQL, or your ORM's log stream. Two minutes, no agent on your boxes.

    $ pinpoint connect postgres://…
  2. 02

    Analyze plans

    It samples live queries, runs EXPLAIN on the hot ones, and maps cost to wall-clock time. Seq scans, spills, and N+1 fan-outs get flagged.

  3. 03

    Ranked fixes

    You get a queue sorted by milliseconds saved, each with the exact index, rewrite, or config change and the projected new p95.

    + idx_items_order−791ms
    rewrite OR → UNION−214ms

Measured, not promised

One checkout endpoint, before and after.

p95 latency
842ms
Throughput
118req/s
DB CPU
81%
p95 latency842 ms
throughput118 req/s
db cpu under load81%

3 indexes added · 1 query rewritten · same hardware

Fits the stack you already run.

Databases, ORMs, your CI, and the observability you watch. Pinpoint reads from where the queries already live.

Databases

PostgreSQL & MySQL

Native EXPLAIN parsing for both engines, including partitioned tables and read replicas. Connects in read-only.

Postgres 12 - 17
MySQL 5.7 - 8.4
Aurora
Timescale
ORMs

Prisma · Django · ActiveRecord

Maps slow SQL back to the line of code that generated it.

CI

GitHub Actions

Fails the PR when a change adds a query that regresses p95.

Observability

Datadog · Grafana

Pushes flagged queries as events next to your existing traces.

Alerts

Slack & webhook

A new top offender pings the channel with the suggested fix attached.

Connect a database.
Watch the slow ones surface.

Read-only, two-minute setup, your first ranked fix in the same session. No agent on your servers.

Free on one database. No card. SOC 2 Type II.

Made with Baljia