explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 2fdP

Settings
# exclusive inclusive rows x rows loops node
1. 0.018 99.187 ↑ 1.0 100 1

Limit (cost=2.64..6,557.67 rows=100 width=483) (actual time=64.527..99.187 rows=100 loops=1)

2. 57.000 99.169 ↑ 130.2 100 1

ProjectSet (cost=2.64..853,204.30 rows=13,016 width=483) (actual time=64.525..99.169 rows=100 loops=1)

3. 0.153 17.647 ↑ 130.2 100 1

Nested Loop Semi Join (cost=2.64..515,211.32 rows=13,016 width=394) (actual time=0.961..17.647 rows=100 loops=1)

4. 0.813 15.122 ↑ 122.7 1,186 1

Nested Loop Left Join (cost=2.22..443,735.85 rows=145,558 width=423) (actual time=0.161..15.122 rows=1,186 loops=1)

5. 0.780 13.123 ↑ 122.7 1,186 1

Nested Loop Left Join (cost=1.94..331,402.47 rows=145,558 width=380) (actual time=0.138..13.123 rows=1,186 loops=1)

6. 0.339 11.157 ↑ 122.7 1,186 1

Nested Loop Left Join (cost=1.67..277,066.06 rows=145,558 width=333) (actual time=0.131..11.157 rows=1,186 loops=1)

7. 0.708 9.632 ↑ 122.7 1,186 1

Nested Loop Left Join (cost=1.40..234,839.29 rows=145,558 width=333) (actual time=0.124..9.632 rows=1,186 loops=1)

8. 0.408 7.738 ↑ 122.7 1,186 1

Nested Loop Left Join (cost=1.13..180,502.87 rows=145,558 width=290) (actual time=0.103..7.738 rows=1,186 loops=1)

9. 0.733 6.144 ↑ 122.7 1,186 1

Nested Loop Left Join (cost=0.85..138,276.38 rows=145,558 width=290) (actual time=0.075..6.144 rows=1,186 loops=1)

10. 0.399 3.039 ↑ 122.7 1,186 1

Nested Loop Left Join (cost=0.56..86,297.43 rows=145,558 width=233) (actual time=0.065..3.039 rows=1,186 loops=1)

11. 1.454 1.454 ↑ 122.7 1,186 1

Index Scan Backward using model_task_date_idx on model_task t (cost=0.42..63,012.79 rows=145,558 width=174) (actual time=0.045..1.454 rows=1,186 loops=1)

  • Filter: (NOT COALESCE(is_deleted, false))
  • Rows Removed by Filter: 11
12. 1.186 1.186 ↑ 1.0 1 1,186

Index Scan using model_doc_status_pkey on model_doc_status st (cost=0.14..0.16 rows=1 width=63) (actual time=0.001..0.001 rows=1 loops=1,186)

  • Index Cond: (id = t.status_id)
13. 2.372 2.372 ↑ 1.0 1 1,186

Index Scan using model_person_pkey on model_person p (cost=0.29..0.36 rows=1 width=65) (actual time=0.002..0.002 rows=1 loops=1,186)

  • Index Cond: (id = t.person_id)
14. 1.186 1.186 ↑ 1.0 1 1,186

Index Only Scan using tbl_users_pkey on tbl_users a (cost=0.27..0.29 rows=1 width=4) (actual time=0.001..0.001 rows=1 loops=1,186)

  • Index Cond: (id = t.author_id)
  • Heap Fetches: 76
15. 1.186 1.186 ↑ 1.0 1 1,186

Index Scan using tbl_profiles_user_id_idx1 on tbl_profiles ap (cost=0.27..0.37 rows=1 width=51) (actual time=0.001..0.001 rows=1 loops=1,186)

  • Index Cond: (user_id = a.id)
16. 1.186 1.186 ↑ 1.0 1 1,186

Index Only Scan using tbl_users_pkey on tbl_users d (cost=0.27..0.29 rows=1 width=4) (actual time=0.001..0.001 rows=1 loops=1,186)

  • Index Cond: (id = t.doer_id)
  • Heap Fetches: 47
17. 1.186 1.186 ↑ 1.0 1 1,186

Index Scan using tbl_profiles_user_id_idx1 on tbl_profiles dp (cost=0.27..0.37 rows=1 width=55) (actual time=0.001..0.001 rows=1 loops=1,186)

  • Index Cond: (user_id = d.id)
18. 1.186 1.186 ↑ 1.0 1 1,186

Index Scan using model_listitem_pkey on model_listitem dpp (cost=0.28..0.77 rows=1 width=51) (actual time=0.001..0.001 rows=1 loops=1,186)

  • Index Cond: (id = dp.doer_post)
19. 2.372 2.372 ↓ 0.0 0 1,186

Index Only Scan using document_produced_doc_id_parent_doc_name_doc_name_index on document_produced (cost=0.42..0.49 rows=1 width=4) (actual time=0.002..0.002 rows=0 loops=1,186)

  • Index Cond: ((doc_id = t.id) AND (doc_name = 'Task'::text))
  • Filter: (parent_doc_name = ANY ('{RequestSupervisory,RequestContractor,RequestCommercialOffer,RequestPerson}'::text[]))
  • Rows Removed by Filter: 1
  • Heap Fetches: 0
20.          

SubPlan (for ProjectSet)

21. 0.000 0.000 ↓ 0.0 0

Index Only Scan using document_file_doc_guid on document_file (cost=0.42..8.44 rows=1 width=0) (never executed)

  • Index Cond: (doc_guid = t.guid)
  • Heap Fetches: 0
22. 24.323 24.323 ↓ 1.0 124,461 1

Seq Scan on document_file document_file_1 (cost=0.00..3,307.58 rows=124,458 width=16) (actual time=0.018..24.323 rows=124,461 loops=1)

23. 0.000 0.199 ↑ 1.0 1 199

Index Scan using typology_pkey on typology (cost=8.72..16.73 rows=1 width=67) (actual time=0.001..0.001 rows=1 loops=199)

  • Index Cond: (id = $3)
24.          

Initplan (for Index Scan)

25. 0.000 0.597 ↑ 1.0 1 199

Limit (cost=0.42..8.44 rows=1 width=4) (actual time=0.003..0.003 rows=1 loops=199)

26. 0.597 0.597 ↑ 1.0 1 199

Index Scan using document_produced_doc_id_parent_doc_name_doc_name_index on document_produced document_produced_1 (cost=0.42..8.44 rows=1 width=4) (actual time=0.003..0.003 rows=1 loops=199)

  • Index Cond: ((doc_id = t.id) AND (doc_name = 'Task'::text))
Planning time : 6.259 ms
Execution time : 99.590 ms