explain.depesz.com

PostgreSQL's explain analyze made readable

Result: CZOD

Settings
# exclusive inclusive rows x rows loops node
1. 0.000 774.928 ↓ 1.8 7 1

Nested Loop (cost=34,908.86..79,801.82 rows=4 width=266) (actual time=774.910..774.928 rows=7 loops=1)

  • Join Filter: (supplier.s_nationkey = nation_1.n_nationkey)
  • Rows Removed by Join Filter: 168
2.          

Initplan (forNested Loop)

3. 0.000 355.995 ↑ 1.0 1 1

Finalize Aggregate (cost=34,907.71..34,907.72 rows=1 width=32) (actual time=355.995..355.995 rows=1 loops=1)

4. 51.848 356.040 ↓ 1.5 3 1

Gather (cost=34,907.50..34,907.71 rows=2 width=32) (actual time=355.617..356.040 rows=3 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
5. 99.746 304.192 ↑ 1.0 1 3

Partial Aggregate (cost=33,907.50..33,907.51 rows=1 width=32) (actual time=304.192..304.192 rows=1 loops=3)

6. 204.446 204.446 ↑ 1.2 500,000 3

Parallel Seq Scan on orders orders_1 (cost=0.00..32,345.00 rows=625,000 width=8) (actual time=0.132..204.446 rows=500,000 loops=3)

7. 0.020 0.020 ↑ 1.0 25 1

Seq Scan on nation nation_1 (cost=0.00..1.25 rows=25 width=108) (actual time=0.018..0.020 rows=25 loops=1)

8. 0.024 774.900 ↓ 1.8 7 25

Materialize (cost=1.14..44,891.35 rows=4 width=166) (actual time=19.316..30.996 rows=7 loops=25)

9. 0.007 774.876 ↓ 1.8 7 1

Nested Loop (cost=1.14..44,891.33 rows=4 width=166) (actual time=482.902..774.876 rows=7 loops=1)

10. 0.003 774.764 ↓ 1.8 7 1

Nested Loop (cost=0.85..44,890.12 rows=4 width=140) (actual time=482.870..774.764 rows=7 loops=1)

11. 0.003 774.711 ↑ 1.0 1 1

Nested Loop (cost=0.42..44,855.00 rows=1 width=135) (actual time=482.835..774.711 rows=1 loops=1)

  • Join Filter: (customer.c_nationkey = nation.n_nationkey)
  • Rows Removed by Join Filter: 22
12. 0.004 774.696 ↑ 1.0 1 1

Nested Loop (cost=0.42..44,853.44 rows=1 width=35) (actual time=482.821..774.696 rows=1 loops=1)

13. 774.619 774.619 ↑ 1.0 1 1

Seq Scan on orders (cost=0.00..44,845.00 rows=1 width=16) (actual time=482.745..774.619 rows=1 loops=1)

  • Filter: (o_totalprice = $1)
  • Rows Removed by Filter: 1499999
14. 0.073 0.073 ↑ 1.0 1 1

Index Scan using pkcustomer on customer (cost=0.42..8.44 rows=1 width=27) (actual time=0.073..0.073 rows=1 loops=1)

  • Index Cond: (c_custkey = orders.o_custkey)
15. 0.012 0.012 ↑ 1.1 23 1

Seq Scan on nation (cost=0.00..1.25 rows=25 width=108) (actual time=0.011..0.012 rows=23 loops=1)

16. 0.050 0.050 ↑ 2.3 7 1

Index Scan using pklineitem on lineitem (cost=0.43..34.96 rows=16 width=13) (actual time=0.033..0.050 rows=7 loops=1)

  • Index Cond: (l_orderkey = orders.o_orderkey)
17. 0.105 0.105 ↑ 1.0 1 7

Index Scan using pksupplier on supplier (cost=0.29..0.30 rows=1 width=34) (actual time=0.015..0.015 rows=1 loops=7)

  • Index Cond: (s_suppkey = lineitem.l_suppkey)