explain.depesz.com

PostgreSQL's explain analyze made readable

Result: k9HL

Settings
# exclusive inclusive rows x rows loops node
1. 0.038 20,809.410 ↑ 1.0 45 1

Limit (cost=1,001.46..204,199.21 rows=45 width=179) (actual time=4,278.956..20,809.410 rows=45 loops=1)

2. 0.000 20,809.372 ↑ 15.8 45 1

Gather Merge (cost=1,001.46..3,202,494.94 rows=709 width=179) (actual time=4,278.955..20,809.372 rows=45 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
3. 3.327 48,888.843 ↑ 18.4 16 3

Nested Loop (cost=1.44..3,201,413.08 rows=295 width=179) (actual time=3,151.169..16,296.281 rows=16 loops=3)

  • Join Filter: (teaser.id = teaser_country_relation.teaser_id)
4. 17.661 48,836.376 ↑ 18.7 315 3

Nested Loop (cost=0.87..3,172,888.21 rows=5,893 width=187) (actual time=43.460..16,278.792 rows=315 loops=3)

5. 47,063.715 47,063.715 ↑ 10.9 2,925 3

Parallel Index Scan Backward using teaser_created_at on teaser (cost=0.43..3,082,475.40 rows=31,941 width=179) (actual time=12.778..15,687.905 rows=2,925 loops=3)

  • Filter: ((clicks >= '0'::bigint) AND (clicks <= '4000000'::bigint) AND (to_tsvector('russian'::regconfig, (title)::text) @@ plainto_tsquery('open'::text)))
  • Rows Removed by Filter: 587536
6. 1,755.000 1,755.000 ↓ 0.0 0 8,775

Index Only Scan using idx_17262_idx_teaser_network_relation_temp_teaser_id_network_id on teaser_network_relation (cost=0.43..2.82 rows=1 width=8) (actual time=0.200..0.200 rows=0 loops=8,775)

  • Index Cond: (teaser_id = teaser.id)
  • Filter: (network_id = ANY ('{6,15}'::bigint[]))
  • Rows Removed by Filter: 1
  • Heap Fetches: 8810
7. 49.140 49.140 ↓ 0.0 0 945

Index Only Scan using idx_17238_idx_teaser_country_relation_temp_teaser_id_country_id on teaser_country_relation (cost=0.57..4.83 rows=1 width=8) (actual time=0.052..0.052 rows=0 loops=945)

  • Index Cond: ((teaser_id = teaser_network_relation.teaser_id) AND (country_id = ANY ('{3,67}'::bigint[])))
  • Heap Fetches: 49