explain.depesz.com

PostgreSQL's explain analyze made readable

Result: LhRi

Settings
# exclusive inclusive rows x rows loops node
1. 0.000 0.000 ↓ 0.0

Limit (cost=1.44..51,442.72 rows=45 width=680) (actual rows= loops=)

2. 0.000 0.000 ↓ 0.0

Nested Loop (cost=1.44..61,917,014.97 rows=54,164 width=680) (actual rows= loops=)

3. 0.000 0.000 ↓ 0.0

Nested Loop (cost=0.87..26,035,822.80 rows=517,834 width=684) (actual rows= loops=)

4. 0.000 0.000 ↓ 0.0

Index Scan Backward using "idx-teaser-created_at" on teaser (cost=0.43..10,414,778.50 rows=3,948,892 width=680) (actual rows= loops=)

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

Index Scan using "idx-teaser_network_relation-teaser_id" on teaser_network_relation (cost=0.43..3.95 rows=1 width=4) (actual rows= loops=)

  • Index Cond: (teaser_id = teaser.id)
  • Filter: (network_id = 7)
6. 0.000 0.000 ↓ 0.0

Index Scan using "idx-teaser_country_relation-teaser_id" on teaser_country_relation (cost=0.57..69.10 rows=19 width=4) (actual rows= loops=)

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