explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 0jaB : asc

Settings
# exclusive inclusive rows x rows loops node
1. 0.023 5.918 ↑ 1.0 45 1

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

2. 0.019 5.895 ↑ 1,203.6 45 1

Nested Loop (cost=1.44..61,917,014.97 rows=54,164 width=680) (actual time=0.282..5.895 rows=45 loops=1)

3. 0.131 1.340 ↑ 21,576.4 24 1

Nested Loop (cost=0.87..26,035,822.80 rows=517,834 width=684) (actual time=0.087..1.340 rows=24 loops=1)

4. 0.289 0.289 ↑ 17,169.1 230 1

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

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

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

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

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

  • Index Cond: (teaser_id = teaser.id)
  • Filter: (country_id = ANY ('{3,67}'::integer[]))
  • Rows Removed by Filter: 366
Planning time : 1.149 ms
Execution time : 5.970 ms