explain.depesz.com

PostgreSQL's explain analyze made readable

Result: vl3b

Settings
# exclusive inclusive rows x rows loops node
1. 0.010 10,286.242 ↑ 1.0 45 1

Limit (cost=1,001.46..55,148.57 rows=45 width=680) (actual time=10,275.716..10,286.242 rows=45 loops=1)

2. 0.000 10,286.232 ↑ 210.9 45 1

Gather Merge (cost=1,001.46..11,418,822.91 rows=9,489 width=680) (actual time=10,275.714..10,286.232 rows=45 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
3. 0.031 30,839.250 ↑ 87.9 45 3

Nested Loop (cost=1.44..11,416,727.62 rows=3,954 width=680) (actual time=10,272.171..10,279.750 rows=45 loops=3)

  • Join Filter: (teaser.id = teaser_country_relation.teaser_id)
4. 0.357 30,818.805 ↑ 919.1 39 3

Nested Loop (cost=0.87..9,283,506.01 rows=35,843 width=684) (actual time=10,271.742..10,272.935 rows=39 loops=3)

5. 30,816.552 30,816.552 ↑ 868.5 158 3

Parallel Index Scan Backward using "idx-teaser-created_at" on teaser (cost=0.43..8,814,872.69 rows=137,224 width=680) (actual time=10,271.514..10,272.184 rows=158 loops=3)

  • Filter: ((clicks >= 180000) AND (clicks <= 510000))
  • Rows Removed by Filter: 2496666
6. 1.896 1.896 ↓ 0.0 0 474

Index Scan using "idx-teaser_network_relation-teaser_id" on teaser_network_relation (cost=0.43..3.41 rows=1 width=4) (actual time=0.004..0.004 rows=0 loops=474)

  • Index Cond: (teaser_id = teaser.id)
  • Filter: (network_id = ANY ('{13,3}'::integer[]))
  • Rows Removed by Filter: 2
7. 20.414 20.414 ↑ 20.0 1 118

Index Scan using "idx-teaser_country_relation-teaser_id" on teaser_country_relation (cost=0.57..59.27 rows=20 width=4) (actual time=0.156..0.173 rows=1 loops=118)

  • Index Cond: (teaser_id = teaser_network_relation.teaser_id)
  • Filter: (country_id = ANY ('{3,67}'::integer[]))
  • Rows Removed by Filter: 40
Planning time : 7.418 ms
Execution time : 10,286.351 ms