Read PostgreSQL or MySQL EXPLAIN output: each node's own time with children subtracted and loops multiplied, and the row estimates that chose the plan.
Waiting for a plan
Output from EXPLAIN. Nothing is executed and no database is contacted.
Actual time in a plan is per loop. A node showing 0.03ms that ran 40,000 times spent 1.2 seconds, and the plan prints 0.03 — which is how a nested-loop problem hides in plain sight. Every time here is multiplied by its loop count.
Paste EXPLAIN output to see where the time actually went.
Nothing is executed and no database is contacted — this reads plan text that EXPLAIN produced elsewhere. A plan without ANALYZE carries estimates only, and estimates are the planner’s opinion rather than a measurement. Cost is unitless and comparable only within one plan, so a cost of 1,800 says nothing about milliseconds. Self time and self cost are computed here by subtracting children and multiplying by loops, which no database does for you; the findings about access strategies are heuristics about the plan shape, not advice about your schema, which this cannot see.
Query Plan Inspector runs entirely on your device — your plan is parsed in your browser and no query, schema or connection detail is uploaded.
You’re on the Free plan. Compare plans
Three numbers decide where time went and none of them appears in the plan. PostgreSQL reports cost and time cumulatively, so the most expensive node in any plan is the root; subtracting the children gives each node's own contribution, and that ranking is the one worth reading.
Actual time is per loop. A node showing 0.03ms that ran 40,000 times on the inner side of a nested loop spent 1.2 seconds, and the plan displays 0.03. Reading a plan without multiplying by the loop count is the single most common way a nested-loop problem gets missed.
The planner's row estimate against the measured count is what explains why a bad plan was chosen. A node estimated at one row that returned fifty thousand did not merely run slowly — it caused the planner to pick a nested loop, and no amount of tuning that node will help. Fixing the estimate is the fix.
Because the reported time is cumulative: every parent includes its children, so the root is always the slowest node. Subtracting children and multiplying by loops gives the figure that identifies the actual problem.
Why the plan is what it is. An under-estimate leads the planner to choose strategies that only work for small inputs — a nested loop, an unhashed aggregate, a sort it thought would fit in memory. Fix the estimate and the plan changes by itself.
No. Cost is unitless and comparable only within one plan. A cost of 1,800 says nothing about time, and comparing costs between two databases or two configurations is meaningless.
Because without it there are no measurements at all — only what the planner expected. The comparison between expectation and reality is the most useful thing a plan carries, and it is unavailable in a plain EXPLAIN.
No. This reads plan text produced elsewhere. No database is contacted, no query runs and no connection detail is needed.
If a tool here saved you some time, you can put something towards the hosting.Buy me a coffee, on Ko-fi, opens in a new tab