Skip to content

Instantly share code, notes, and snippets.

@ycku
Created November 9, 2022 14:43
Show Gist options
  • Save ycku/6a38107e2b2253945b1175b1ebf2957f to your computer and use it in GitHub Desktop.
Save ycku/6a38107e2b2253945b1175b1ebf2957f to your computer and use it in GitHub Desktop.
你又不小心 IN 了嗎?
QUERY PLAN
-----------------------------------------------------------------------------------------------------------------------------------------
Aggregate (cost=10438.81..10438.82 rows=1 width=8) (actual time=80.819..84.547 rows=1 loops=1)
-> Gather (cost=5774.06..10438.80 rows=1 width=0) (actual time=52.857..83.197 rows=27183 loops=1)
Workers Planned: 1
Workers Launched: 1
-> Parallel Hash Anti Join (cost=4774.06..9438.70 rows=1 width=0) (actual time=46.786..67.737 rows=13592 loops=2)
Hash Cond: (s.key = t.key)
-> Parallel Seq Scan on s (cost=0.00..2843.47 rows=117647 width=4) (actual time=0.004..8.666 rows=100000 loops=2)
-> Parallel Hash (cost=2843.47..2843.47 rows=117647 width=4) (actual time=22.881..22.882 rows=100000 loops=2)
Buckets: 131072 Batches: 4 Memory Usage: 3008kB
-> Parallel Seq Scan on t (cost=0.00..2843.47 rows=117647 width=4) (actual time=0.008..8.464 rows=100000 loops=2)
Planning Time: 0.193 ms
Execution Time: 84.599 ms
(12 rows)
@ycku
Copy link
Author

ycku commented Nov 9, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment