
PostgreSQL
Reading a Plan Tree: Start at the Leaves
A plan is a tree printed upside down. Reading it in execution order instead of top to bottom turns a wall of text into a diagnosis.
· 4 min
tag
Articles tagged “performance” on SQLPress — 4 in total.
4 articles

A plan is a tree printed upside down. Reading it in execution order instead of top to bottom turns a wall of text into a diagnosis.
· 4 min

A query run five times in a row reports the speed of memory, not of the system. Which layer answered the request is the first thing to establish.
· 3 min

Which variant you ran decides whether the numbers in front of you are the planner's estimate or a measurement, and whether the pages came from cache.
· 4 min

One query for the list, then one more for every item in it. The cost is per statement, which is why the profiler shows a fast database and a slow request.
· 3 min