// troubleshooting guide · cockroachdb
Why Is CockroachDB Slow? Slow Query Fixes
- Status
- Ongoing
- platforms:
- Self-hosted and CockroachDB Cloud
- updated:
- November 15, 2026
- reports:
- 4
- Method
- how we research
RUNBOOK · cockroachdb/slow-queries4 FIXES
// quick answer
CockroachDB is slower than single-node PostgreSQL for many workloads because every write replicates through consensus. Find slow statements, add indexes, avoid cross-region round trips and full scans.
Most likely fix: Find the slow statements
How to fix it
// try these in order, the most common fix is first
FIX 1Find the slow statements
- 01Open DB Console > SQL Activity > Statements and sort by latency
- 02Run EXPLAIN ANALYZE on the worst queries and look for full scans
Did this fix it?FIX 2Add or fix indexes
- 01Create indexes suggested on the Insights page
- 02Use covering indexes (STORING) to avoid index joins
- 03Drop unused indexes that slow writes
Did this fix it?FIX 3Cut round trips
- 01Batch inserts/updates and use multi-row INSERT
- 02Fix N+1 queries in your ORM
- 03Place the app in the same region as the leaseholder; use REGIONAL BY ROW or follower reads for reads
Did this fix it?FIX 4Scale or rethink
- 01Add vCPUs or nodes and check for hot ranges
- 02For single-region apps, compare with PostgreSQL or Aurora
- 03Move analytics to a warehouse
Did this fix it?
Symptoms
Queries take hundreds of ms; latency rises under load; high CPU; slow single-region performance versus Postgres.
Why it happens
- C-01Cross-region consensus adds network latency to every write
- C-02Full table scans due to missing indexes
- C-03Contention and transaction retries
- C-04Chatty ORMs sending many small statements and N+1 queries
- C-05Under-provisioned vCPUs or hot ranges
- C-06Analytical (OLAP) queries on an OLTP-oriented database
// this guide also covers
- why is cockroachdb so slow
- cockroachdb slow queries
- cockroachdb performance issues
- cockroachdb slower than postgres
- cockroachdb high latency
Still not working?
If CockroachDB keeps failing, you're not alone. See every CockroachDB problem users report or the alternatives people switch to.
Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.
Talk to usOther CockroachDB errors
- CockroachDB 'restart transaction' Error (40001) Fix
- CockroachDB Cluster Throttled: License Expired or No Telemetry
- CockroachDB Connection Refused / Cannot Connect Fix
- CockroachDB Node Down or Cluster Unavailable: Fix
- CockroachDB High Memory, CPU or OOM Crash Fix
- CockroachDB 'Not Supported' / Postgres Compatibility Errors Fix
- CockroachDB Cloud Bill Too High: How to Cut Costs
- How to Cancel or Downgrade CockroachDB Cloud