explain.depesz.com

PostgreSQL's explain analyze made readable

Result: WRz

Settings
# exclusive inclusive rows x rows loops node
1. 0.007 1,119.871 ↑ 1.0 45 1

Limit (cost=266,525.30..266,530.55 rows=45 width=295) (actual time=1,078.268..1,119.871 rows=45 loops=1)

2. 0.000 1,119.864 ↑ 12.4 45 1

Gather Merge (cost=266,525.30..266,590.17 rows=556 width=295) (actual time=1,078.266..1,119.864 rows=45 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
3. 1.500 3,223.017 ↑ 6.2 45 3

Sort (cost=265,525.28..265,525.97 rows=278 width=295) (actual time=1,074.337..1,074.339 rows=45 loops=3)

  • Sort Key: ((teaser.created_at <> 0)) DESC
  • Sort Method: top-N heapsort Memory: 47kB
  • Worker 0: Sort Method: top-N heapsort Memory: 47kB
  • Worker 1: Sort Method: top-N heapsort Memory: 47kB
4. 11.136 3,221.517 ↑ 1.3 207 3

Nested Loop (cost=618.54..265,516.26 rows=278 width=295) (actual time=44.916..1,073.839 rows=207 loops=3)

  • Join Filter: (teaser.id = teaser_country_relation.teaser_id)
5. 0.000 3,152.133 ↑ 2.3 2,427 3

Nested Loop (cost=617.98..230,632.91 rows=5,703 width=302) (actual time=38.584..1,050.711 rows=2,427 loops=3)

6. 804.729 828.804 ↑ 1.3 23,521 3

Parallel Bitmap Heap Scan on teaser (cost=617.54..133,547.97 rows=29,718 width=294) (actual time=37.270..276.268 rows=23,521 loops=3)

  • Recheck Cond: (to_tsvector('russian'::regconfig, (title)::text) @@ plainto_tsquery('open'::text))
  • Filter: ((clicks >= '0'::bigint) AND (clicks <= '4000000'::bigint))
  • Rows Removed by Filter: 1
  • Heap Blocks: exact=25392
7. 24.075 24.075 ↑ 1.0 70,567 1

Bitmap Index Scan on teaser_tls (cost=0.00..599.71 rows=71,395 width=0) (actual time=24.075..24.075 rows=70,567 loops=1)

  • Index Cond: (to_tsvector('russian'::regconfig, (title)::text) @@ plainto_tsquery('open'::text))
8. 2,328.579 2,328.579 ↓ 0.0 0 70,563

Index Only Scan using idx_16506_idx_teaser_network_relation_temp_teaser_id_network_id on teaser_network_relation (cost=0.43..3.26 rows=1 width=8) (actual time=0.032..0.033 rows=0 loops=70,563)

  • Index Cond: (teaser_id = teaser.id)
  • Filter: (network_id = ANY ('{26,6}'::bigint[]))
  • Rows Removed by Filter: 1
  • Heap Fetches: 54895
9. 58.248 58.248 ↓ 0.0 0 7,281

Index Only Scan using idx_16500_idx_teaser_country_relation_temp_teaser_id_country_id on teaser_country_relation (cost=0.57..6.09 rows=2 width=8) (actual time=0.008..0.008 rows=0 loops=7,281)

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