explain.depesz.com

PostgreSQL's explain analyze made readable

Result: ywff

Settings
# exclusive inclusive rows x rows loops node
1. 0.000 3,067.731 ↑ 1.0 15 1

Limit (cost=43,521.90..43,523.65 rows=15 width=149) (actual time=3,063.243..3,067.731 rows=15 loops=1)

2. 15.957 3,067.722 ↑ 97.3 15 1

Gather Merge (cost=43,521.90..43,692.24 rows=1,460 width=149) (actual time=3,063.241..3,067.722 rows=15 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
3. 10.486 3,051.765 ↑ 66.4 11 3 / 3

Sort (cost=42,521.87..42,523.70 rows=730 width=149) (actual time=3,051.764..3,051.765 rows=11 loops=3)

  • Sort Key: artifact0_.priority, (to_number("substring"((item1_.id)::text, 5), '999999999999999999999999999'::text))
  • Sort Method: top-N heapsort Memory: 30kB
  • Worker 0: Sort Method: top-N heapsort Memory: 30kB
  • Worker 1: Sort Method: top-N heapsort Memory: 30kB
4. 244.609 3,041.279 ↓ 31.2 22,760 3 / 3

Nested Loop (cost=2,586.12..42,503.96 rows=730 width=149) (actual time=16.445..3,041.279 rows=22,760 loops=3)

5. 152.114 2,796.670 ↓ 31.2 22,760 3 / 3

Nested Loop (cost=2,585.71..42,176.72 rows=730 width=127) (actual time=16.105..2,796.670 rows=22,760 loops=3)

6. 166.092 2,644.556 ↓ 31.2 22,760 3 / 3

Nested Loop (cost=2,585.42..41,934.85 rows=730 width=112) (actual time=16.075..2,644.556 rows=22,760 loops=3)

7. 293.930 2,478.464 ↓ 31.2 22,760 3 / 3

Nested Loop (cost=2,585.14..41,712.45 rows=730 width=97) (actual time=16.017..2,478.464 rows=22,760 loops=3)

8. 2,062.791 2,184.534 ↓ 29.9 22,760 3 / 3

Nested Loop (cost=2,584.72..41,230.05 rows=762 width=98) (actual time=15.935..2,184.534 rows=22,760 loops=3)

9. 51.525 121.743 ↓ 8.6 158,823 3 / 3

Parallel Hash Join (cost=2,584.29..25,011.09 rows=18,550 width=24) (actual time=7.737..121.743 rows=158,823 loops=3)

  • Hash Cond: ((artifact0_.status_fv)::text = (fieldvalue5_.id)::text)
10. 63.999 63.999 ↑ 1.2 160,424 3 / 3

Parallel Seq Scan on artifact artifact0_ (cost=0.00..21,904.32 rows=199,032 width=34) (actual time=0.037..63.999 rows=160,424 loops=3)

11. 2.870 6.219 ↑ 1.7 4,050 3 / 3

Parallel Hash (cost=2,496.90..2,496.90 rows=6,991 width=10) (actual time=6.218..6.219 rows=4,050 loops=3)

  • Buckets: 16384 Batches: 1 Memory Usage: 768kB
12. 3.349 3.349 ↑ 1.7 4,050 3 / 3

Parallel Bitmap Heap Scan on field_value fieldvalue5_ (cost=288.52..2,496.90 rows=6,991 width=10) (actual time=0.687..3.349 rows=4,050 loops=3)

  • Recheck Cond: ((value_class)::text = 'Open'::text)
  • Heap Blocks: exact=613
  • -> Bitmap Index Scan on idx_tuning_value_valueclass (cost=0.00..285.55
13. 0.000 1.750 ↓ 0.0 12,149 1

rows=11884 width=0) (cost=0..0 rows=0 width=0) (actual time=1.750..1.750 rows=12,149 loops=1)

  • Index Cond: ((value_class)::text = 'Open'::text)
14. 6,194.097 6,194.097 ↓ 0.0 0 476,469

Index Scan using idx_tuning_3_artifact on item item1_ (cost=0.43..0.87 rows=1 width=74) (actual time=0.013..0.013 rows=0 loops=476,469)

  • Index Cond: (((folder_id)::text = 'tracker5673'::text) AND (is_deleted = false) AND ((id)::text = (artifact0_.id)::text))
  • Filter: (NOT is_deleted)
15. 819.348 819.348 ↑ 2.0 1 68,279

Index Scan using relation_target on relationship relationsh2_ (cost=0.42..0.61 rows=2 width=19) (actual time=0.012..0.012 rows=1 loops=68,279)

  • Index Cond: ((target_id)::text = (artifact0_.id)::text)
  • Filter: ((NOT is_deleted) AND ((relationship_type_name)::text = 'ArtifactAssignment'::text))
  • Rows Removed by Filter: 1
16. 477.953 477.953 ↑ 1.0 1 68,279

Index Scan using sfuser_id on sfuser jpauser3_ (cost=0.28..0.30 rows=1 width=33) (actual time=0.007..0.007 rows=1 loops=68,279)

  • Index Cond: ((id)::text = (relationsh2_.origin_id)::text)
17. 409.674 409.674 ↑ 1.0 1 68,279

Index Scan using sfuser_id on sfuser jpauser4_ (cost=0.28..0.33 rows=1 width=33) (actual time=0.006..0.006 rows=1 loops=68,279)

  • Index Cond: ((id)::text = (item1_.created_by_id)::text)
18. 614.511 614.511 ↑ 1.0 1 68,279

Index Only Scan using field_value_pk on field_value fieldvalue6_ (cost=0.42..0.44 rows=1 width=10) (actual time=0.009..0.009 rows=1 loops=68,279)

  • Index Cond: (id = (artifact0_.category_fv)::text)
  • Heap Fetches: 0
Planning time : 13.458 ms
Execution time : 3,067.878 ms