explain.depesz.com

PostgreSQL's explain analyze made readable

Result: dKlt

Settings
# exclusive inclusive rows x rows loops node
1. 0.003 25.454 ↓ 13.0 13 1

Limit (cost=62.18..62.18 rows=1 width=581) (actual time=25.451..25.454 rows=13 loops=1)

2. 0.039 25.451 ↓ 13.0 13 1

Sort (cost=62.18..62.18 rows=1 width=581) (actual time=25.450..25.451 rows=13 loops=1)

  • Sort Key: qa.qa_form_created_date__c DESC, qa.id DESC
  • Sort Method: quicksort Memory: 30kB
3. 0.143 25.412 ↓ 13.0 13 1

WindowAgg (cost=0.78..62.18 rows=1 width=581) (actual time=25.351..25.412 rows=13 loops=1)

4. 0.057 25.269 ↓ 13.0 13 1

Nested Loop Left Join (cost=0.78..62.17 rows=1 width=328) (actual time=1.853..25.269 rows=13 loops=1)

  • Filter: ((((c.createddate >= '2018-10-02 07:00:00'::timestamp without time zone) AND (c.createddate < '2019-04-06 07:00:00'::timestamp without time zone)) OR ((sr.createddate >= '2018-10-02 07:00:00'::timestamp without time zone) AND (s (...)
  • Rows Removed by Filter: 14
5. 0.045 24.699 ↓ 27.0 27 1

Nested Loop (cost=0.67..58.05 rows=1 width=271) (actual time=1.389..24.699 rows=27 loops=1)

  • Join Filter: ((qa.property_consultant__c)::text = (ip.contact__c)::text)
6. 0.039 23.874 ↓ 30.0 30 1

Nested Loop (cost=0.61..57.95 rows=1 width=309) (actual time=1.354..23.874 rows=30 loops=1)

7. 0.061 22.347 ↓ 31.0 31 1

Nested Loop Left Join (cost=0.50..53.83 rows=1 width=275) (actual time=1.259..22.347 rows=31 loops=1)

  • Filter: (((ipq.employment_status__c)::text = 'Active'::text) OR ((COALESCE(ipq.employment_status__c, ''::character varying))::text = ''::text))
  • Rows Removed by Filter: 10
8. 0.067 21.835 ↓ 41.0 41 1

Nested Loop Left Join (cost=0.45..53.74 rows=1 width=294) (actual time=1.204..21.835 rows=41 loops=1)

9. 0.079 20.579 ↓ 41.0 41 1

Nested Loop Left Join (cost=0.33..49.62 rows=1 width=268) (actual time=1.108..20.579 rows=41 loops=1)

10. 0.082 18.573 ↓ 41.0 41 1

Nested Loop Left Join (cost=0.25..45.53 rows=1 width=262) (actual time=1.021..18.573 rows=41 loops=1)

11. 0.081 17.589 ↓ 41.0 41 1

Nested Loop Left Join (cost=0.20..41.47 rows=1 width=258) (actual time=0.979..17.589 rows=41 loops=1)

12. 15.253 15.253 ↓ 41.0 41 1

Index Scan using hc_idx_qa_form__c_shop_status__c on qa_form__c qa (cost=0.08..37.35 rows=1 width=192) (actual time=0.958..15.253 rows=41 loops=1)

  • Index Cond: (((shop_status__c)::text = ANY ('{Queued,"In Progress"}'::text[])) AND ((shop_status__c)::text = 'In Progress'::text))
  • Filter: ((qa_form_created_date__c >= '2017-11-01 07:00:00'::timestamp without time zone) AND (qa_form_created_date__c < '2019-04-05 07:00:00'::timestamp without time zone) AND ((shop_categ (...)
  • Rows Removed by Filter: 1124
13. 2.255 2.255 ↑ 1.0 1 41

Index Scan using hcu_idx_case_sfid on "case" c (cost=0.11..4.12 rows=1 width=66) (actual time=0.055..0.055 rows=1 loops=41)

  • Index Cond: ((qa.case__c)::text = (sfid)::text)
14. 0.902 0.902 ↑ 1.0 1 41

Index Scan using account_idx_sfid on account acc (cost=0.06..4.06 rows=1 width=42) (actual time=0.022..0.022 rows=1 loops=41)

  • Index Cond: ((qa.case_account__c)::text = (sfid)::text)
15. 1.927 1.927 ↑ 1.0 1 41

Index Scan using property__c_idx_sfid on property__c pr (cost=0.08..4.09 rows=1 width=44) (actual time=0.047..0.047 rows=1 loops=41)

  • Index Cond: ((qa.case_property__c)::text = (sfid)::text)
16. 1.189 1.189 ↑ 1.0 1 41

Index Scan using contact_idx_sfid on contact cq (cost=0.11..4.12 rows=1 width=26) (actual time=0.029..0.029 rows=1 loops=41)

  • Index Cond: ((qa.qa_reviewer__c)::text = (sfid)::text)
  • Filter: ((recordtypeid)::text = '0120H000001O7IWQA0'::text)
  • Rows Removed by Filter: 0
17. 0.451 0.451 ↑ 1.0 1 41

Index Scan using hc_idx_internal_app_permissions__c_contact__c on internal_app_permissions__c ipq (cost=0.06..0.09 rows=1 width=26) (actual time=0.010..0.011 rows=1 loops=41)

  • Index Cond: ((contact__c)::text = (cq.sfid)::text)
18. 1.488 1.488 ↑ 1.0 1 31

Index Scan using contact_idx_sfid on contact cp (cost=0.11..4.12 rows=1 width=34) (actual time=0.048..0.048 rows=1 loops=31)

  • Index Cond: ((sfid)::text = (qa.property_consultant__c)::text)
  • Filter: ((recordtypeid)::text = '0120H000001O7IWQA0'::text)
19. 0.780 0.780 ↑ 1.0 1 30

Index Scan using hc_idx_internal_app_permissions__c_contact__c on internal_app_permissions__c ip (cost=0.06..0.09 rows=1 width=19) (actual time=0.019..0.026 rows=1 loops=30)

  • Index Cond: ((contact__c)::text = (cp.sfid)::text)
  • Filter: ((employment_status__c)::text = 'Active'::text)
  • Rows Removed by Filter: 0
20. 0.513 0.513 ↓ 0.0 0 27

Index Scan using service_request1__c_idx_sfid on service_request1__c sr (cost=0.11..4.12 rows=1 width=57) (actual time=0.019..0.019 rows=0 loops=27)

  • Index Cond: ((qa.service_request_pop__c)::text = (sfid)::text)