explain.depesz.com

PostgreSQL's explain analyze made readable

Result: yoON

Settings
# exclusive inclusive rows x rows loops node
1. 0.000 2,902.984 ↑ 1.0 15 1

Limit (cost=43,521.90..43,523.65 rows=15 width=149) (actual time=2,898.519..2,902.984 rows=15 loops=1)

2. 20.132 2,902.977 ↑ 97.3 15 1

Gather Merge (cost=43,521.90..43,692.24 rows=1,460 width=149) (actual time=2,898.517..2,902.977 rows=15 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
3. 10.064 2,882.845 ↑ 56.2 13 3 / 3

Sort (cost=42,521.87..42,523.70 rows=730 width=149) (actual time=2,882.844..2,882.845 rows=13 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. 233.615 2,872.781 ↓ 31.2 22,760 3 / 3

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

5. 143.736 2,639.166 ↓ 31.2 22,760 3 / 3

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

6. 157.074 2,495.430 ↓ 31.2 22,760 3 / 3

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

7. 277.562 2,338.356 ↓ 31.2 22,760 3 / 3

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

8. 1,946.732 2,060.794 ↓ 29.9 22,760 3 / 3

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

9. 49.182 114.062 ↓ 8.6 158,826 3 / 3

Parallel Hash Join (cost=2,584.29..25,011.09 rows=18,550 width=24) (actual time=4.890..114.062 rows=158,826 loops=3)

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

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

11. 1.634 4.394 ↑ 1.7 4,050 3 / 3

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

  • Buckets: 16384 Batches: 1 Memory Usage: 704kB
12. 2.760 2.760 ↓ 1.7 12,149 1 / 3

Parallel Bitmap Heap Scan on field_value fieldvalue5_ (cost=288.52..2,496.90 rows=6,991 width=10) (actual time=2.122..8.279 rows=12,149 loops=1)

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

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

  • Index Cond: ((value_class)::text = 'Open'::text)
14. 5,717.724 5,717.724 ↓ 0.0 0 476,477

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

  • 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.011..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. 409.674 409.674 ↑ 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.006..0.006 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 : 12.142 ms
Execution time : 2,903.134 ms