Commit 4b82889d authored by Marcin's avatar Marcin Committed by Marcin
Browse files

Fix inefficient plans in enum_blocks4hivemind by using LATERAL join

During performance tests, the planner occasionally produced suboptimal
plans for the per-block aggregation query, resulting in repeated
GroupAggregate executions and excessive CPU time. Switching to a
LATERAL join makes the aggregation deterministic and consistently fast
(~2s ? ~300ms per 1k blocks).
parent c80db302
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment