Sure, here is the explain analyze for the select:
HashAggregate (cost=123986470.20..129486707.63 rows=164493082 width=24) (actual time=697250.385..741548.965
rows=59015171 loops=1)
Group Key: id1, id2, id3
Planned Partitions: 64 Batches: 65 Memory Usage: 328209kB Disk Usage: 6750176kB
-> Gather (cost=64653301.50..107228737.47 rows=328986164 width=24) (actual time=357598.331..594226.355
rows=161151623 loops=1)
Workers Planned: 2
Workers Launched: 2
-> HashAggregate (cost=64652301.50..74329121.07 rows=164493082 width=24) (actual
time=357572.082..578038.457 rows=53717208 loops=3)
Group Key: id1, id2, id3
Planned Partitions: 64 Batches: 65 Memory Usage: 328209kB Disk Usage:
25774088kB
Worker 0: Batches: 65 Memory Usage: 328209kB Disk Usage: 25375784kB
Worker 1: Batches: 65 Memory Usage: 328209kB Disk Usage: 25382936kB
-> Parallel Seq Scan on large_table (cost=0.00..29740358.40 rows=685387840
width=24) (actual time=12.954..99596.289 rows=548310252 loops=3)
Planning Time: 5.380 ms
Execution Time: 745750.371 ms
--
Jeremiah |