explain.depesz.com

PostgreSQL's explain analyze made readable

Result: rDc7 : pas optimisé

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

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

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

4. 49.430 332.588 ↓ 1.5 3 1

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

  • Workers Planned: 2
  • Workers Launched: 2
5. 91.713 283.158 ↑ 1.0 1 3

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

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

7. 0.021 0.021 ↑ 1.0 25 1

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

8. 0.019 757.525 ↓ 1.8 7 25

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

9. 0.002 757.506 ↓ 1.8 7 1

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

10. 0.003 757.399 ↓ 1.8 7 1

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

11. 0.003 757.339 ↑ 1.0 1 1

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

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

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

13. 757.269 757.269 ↑ 1.0 1 1

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

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

Index Scan using pkcustomer on customer (cost=0.42..8.44 rows=1 width=27) (actual time=0.049..0.049 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.057 0.057 ↑ 2.3 7 1

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