explain.depesz.com

PostgreSQL's explain analyze made readable

Result: N36r

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

Limit (cost=44,346.33..44,348.08 rows=15 width=149) (actual time=2,798.924..2,806.845 rows=15 loops=1)

2. 22.127 2,806.836 ↑ 97.3 15 1

Gather Merge (cost=44,346.33..44,516.68 rows=1,460 width=149) (actual time=2,798.923..2,806.836 rows=15 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
3. 10.188 2,784.709 ↑ 56.2 13 3 / 3

Sort (cost=43,346.31..43,348.13 rows=730 width=149) (actual time=2,784.708..2,784.709 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. 240.365 2,774.521 ↓ 31.2 22,760 3 / 3

Nested Loop (cost=2,586.12..43,328.40 rows=730 width=149) (actual time=92.090..2,774.521 rows=22,760 loops=3)

5. 147.613 2,534.156 ↓ 31.2 22,760 3 / 3

Nested Loop (cost=2,585.71..43,001.16 rows=730 width=127) (actual time=91.492..2,534.156 rows=22,760 loops=3)

6. 160.477 2,386.543 ↓ 31.2 22,760 3 / 3

Nested Loop (cost=2,585.42..42,759.29 rows=730 width=112) (actual time=91.469..2,386.543 rows=22,760 loops=3)

7. 282.480 2,226.066 ↓ 31.2 22,760 3 / 3

Nested Loop (cost=2,585.14..42,536.89 rows=730 width=97) (actual time=91.427..2,226.066 rows=22,760 loops=3)

8. 1,831.129 1,943.586 ↓ 29.9 22,760 3 / 3

Nested Loop (cost=2,584.72..42,054.49 rows=762 width=98) (actual time=91.360..1,943.586 rows=22,760 loops=3)

9. 50.733 112.457 ↓ 8.6 158,826 3 / 3

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

  • Hash Cond: ((artifact0_.status_fv)::text = (fieldvalue5_.id)::text)
10. 57.373 57.373 ↑ 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.029..57.373 rows=160,426 loops=3)

11. 1.599 4.351 ↑ 1.7 4,050 3 / 3

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

  • Buckets: 16384 Batches: 1 Memory Usage: 704kB
12. 2.752 2.752 ↓ 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.016..8.256 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.810 ↓ 0.0 12,149 1

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

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

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

  • Index Cond: ((id)::text = (artifact0_.id)::text)
  • Filter: ((NOT is_deleted) AND ((folder_id)::text = 'tracker5673'::text))
  • Rows Removed by Filter: 1
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. 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.192 ms
Execution time : 2,806.995 ms