explain.depesz.com

PostgreSQL's explain analyze made readable

Result: SDbn

Settings
# exclusive inclusive rows x rows loops node
1. 0.011 13.387 ↑ 1.0 45 1

Limit (cost=1.44..51,241.54 rows=45 width=680) (actual time=11.131..13.387 rows=45 loops=1)

2. 0.025 13.376 ↑ 1,088.6 45 1

Nested Loop (cost=1.44..55,778,835.42 rows=48,986 width=680) (actual time=11.131..13.376 rows=45 loops=1)

3. 0.000 11.511 ↑ 22,371.5 23 1

Nested Loop (cost=0.87..22,829,869.69 rows=514,544 width=684) (actual time=11.102..11.511 rows=23 loops=1)

4. 11.132 11.132 ↑ 21,029.4 205 1

Index Scan using "idx-teaser-created_at" on teaser (cost=0.43..10,153,988.72 rows=4,311,019 width=680) (actual time=11.068..11.132 rows=205 loops=1)

  • Filter: ((clicks >= 0) AND (clicks <= 4000000))
5. 0.410 0.410 ↓ 0.0 0 205

Index Scan using "idx-teaser_network_relation-teaser_id" on teaser_network_relation (cost=0.43..2.93 rows=1 width=4) (actual time=0.002..0.002 rows=0 loops=205)

  • Index Cond: (teaser_id = teaser.id)
  • Filter: (network_id = 7)
  • Rows Removed by Filter: 2
6. 1.840 1.840 ↑ 9.5 2 23

Index Scan using "idx-teaser_country_relation-teaser_id" on teaser_country_relation (cost=0.57..63.85 rows=19 width=4) (actual time=0.056..0.080 rows=2 loops=23)

  • Index Cond: (teaser_id = teaser.id)
  • Filter: (country_id = ANY ('{3,67}'::integer[]))
  • Rows Removed by Filter: 385