explain.depesz.com

PostgreSQL's explain analyze made readable

Result: r3rc

Settings
# exclusive inclusive rows x rows loops node
1. 0.011 2,846.906 ↑ 1.0 15 1

Limit (cost=44,890.22..44,891.97 rows=15 width=149) (actual time=2,846.357..2,846.906 rows=15 loops=1)

2. 21.584 2,846.895 ↑ 99.1 15 1

Gather Merge (cost=44,890.22..45,063.59 rows=1,486 width=149) (actual time=2,846.355..2,846.895 rows=15 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
3. 11.101 2,825.311 ↑ 61.9 12 3 / 3

Sort (cost=43,890.19..43,892.05 rows=743 width=149) (actual time=2,825.309..2,825.311 rows=12 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. 27.021 2,814.210 ↓ 30.6 22,760 3 / 3

Nested Loop (cost=2,716.32..43,871.96 rows=743 width=149) (actual time=83.416..2,814.210 rows=22,760 loops=3)

5. 23.093 2,650.631 ↓ 30.6 22,760 3 / 3

Nested Loop (cost=2,716.03..43,621.95 rows=743 width=102) (actual time=83.357..2,650.631 rows=22,760 loops=3)

6. 17.849 2,490.980 ↓ 30.6 22,760 3 / 3

Nested Loop (cost=2,715.75..43,395.57 rows=743 width=87) (actual time=83.303..2,490.980 rows=22,760 loops=3)

7. 7.716 2,268.294 ↓ 30.6 22,760 3 / 3

Nested Loop (cost=2,715.33..43,066.22 rows=743 width=97) (actual time=83.042..2,268.294 rows=22,760 loops=3)

8. 0.000 1,987.462 ↓ 29.2 22,760 3 / 3

Nested Loop (cost=2,714.91..42,572.45 rows=780 width=98) (actual time=82.971..1,987.462 rows=22,760 loops=3)

9. 49.780 115.069 ↓ 8.4 158,670 3 / 3

Parallel Hash Join (cost=2,714.48..25,141.28 rows=18,980 width=24) (actual time=4.055..115.069 rows=158,670 loops=3)

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

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

11. 1.451 3.731 ↑ 1.8 4,050 3 / 3

Parallel Hash (cost=2,625.07..2,625.07 rows=7,153 width=10) (actual time=3.731..3.731 rows=4,050 loops=3)

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

Parallel Bitmap Heap Scan on field_value fieldvalue5_ (cost=414.66..2,625.07 rows=7,153 width=10) (actual time=1.772..6.839 rows=12,149 loops=1)

  • Recheck Cond: ((value_class)::text = 'Open'::text)
  • Heap Blocks: exact=615
13. 0.526 0.526 ↑ 1.0 12,149 1 / 3

Bitmap Index Scan on field_class_idx (cost=0.00..411.62 rows=12,160 width=0) (actual time=1.577..1.577 rows=12,149 loops=1)

  • Index Cond: ((value_class)::text = 'Open'::text)
14. 1,904.036 1,904.036 ↓ 0.0 0 476,009 / 3

Index Scan using item_pk on item item1_ (cost=0.43..0.92 rows=1 width=74) (actual time=0.012..0.012 rows=0 loops=476,009)

  • Index Cond: ((id)::text = (artifact0_.id)::text)
  • Filter: ((NOT is_deleted) AND ((folder_id)::text = 'tracker5673'::text))
  • Rows Removed by Filter: 1
15. 273.116 273.116 ↑ 2.0 1 68,279 / 3

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. 204.837 204.837 ↑ 1.0 1 68,279 / 3

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
17. 136.558 136.558 ↑ 1.0 1 68,279 / 3

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)
18. 136.558 136.558 ↑ 1.0 1 68,279 / 3

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)
Planning time : 14.465 ms
Execution time : 2,847.041 ms