explain.depesz.com

PostgreSQL's explain analyze made readable

Result: Yjyc : 1

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

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

2. 0.000 0.000 ↓ 0.0

Nested Loop (cost=1.44..55,778,835.42 rows=48,986 width=680) (actual rows= loops=)

3. 0.000 0.000 ↓ 0.0

Nested Loop (cost=0.87..22,829,869.69 rows=514,544 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,153,988.72 rows=4,311,019 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..2.93 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..63.85 rows=19 width=4) (actual rows= loops=)

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