explain.depesz.com

PostgreSQL's explain analyze made readable

Result: aeLx : R1 - Origin

Settings

Optimization(s) for this plan:

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

Nested Loop (cost=34,908.86..79,801.82 rows=4 width=266) (actual time=785.396..785.416 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.025 363.273 ↑ 1.0 1 1

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

4. 49.263 363.248 ↓ 1.5 3 1

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

  • Workers Planned: 2
  • Workers Launched: 2
5. 102.772 313.985 ↑ 1.0 1 3

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

6. 211.213 211.213 ↑ 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.117..211.213 rows=500,000 loops=3)

7. 0.029 0.029 ↑ 1.0 25 1

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

8. 0.024 785.375 ↓ 1.8 7 25

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

9. 0.007 785.351 ↓ 1.8 7 1

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

10. 0.003 785.239 ↓ 1.8 7 1

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

11. 0.003 785.149 ↑ 1.0 1 1

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

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

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

13. 785.059 785.059 ↑ 1.0 1 1

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

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

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

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

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

16. 0.087 0.087 ↑ 2.3 7 1

Index Scan using pklineitem on lineitem (cost=0.43..34.96 rows=16 width=13) (actual time=0.065..0.087 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)