Skip to content
The planner · plan reading

The join that reads one side over and over

Two small tables, and a plan that does far more work than either of them contains. Which node, and why?

The plan

plan

nodeestactualloopspagesshare
Nested LoopJoin Filter: (o.customer_id > c.id)Rows Removed by Filter: 1,22572093510
Seq Scan on c242411
Seq Scan on o90902424

Which node is costing you?

And what would you do about it?