explain.depesz.com

PostgreSQL's explain analyze made readable

Result: j6YC

Settings
# exclusive inclusive rows x rows loops node
1. 0.001 15.702 ↓ 0.0 0 1

Limit (cost=62.33..62.33 rows=1 width=581) (actual time=15.702..15.702 rows=0 loops=1)

2. 0.015 15.701 ↓ 0.0 0 1

Sort (cost=62.33..62.33 rows=1 width=581) (actual time=15.701..15.701 rows=0 loops=1)

  • Sort Key: qa.qa_form_created_date__c DESC, qa.id DESC
  • Sort Method: quicksort Memory: 25kB
3. 0.002 15.686 ↓ 0.0 0 1

WindowAgg (cost=0.78..62.33 rows=1 width=581) (actual time=15.685..15.686 rows=0 loops=1)

4. 0.001 15.684 ↓ 0.0 0 1

Nested Loop Left Join (cost=0.78..62.32 rows=1 width=328) (actual time=15.684..15.684 rows=0 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 (...)
5. 0.001 15.683 ↓ 0.0 0 1

Nested Loop (cost=0.67..58.20 rows=1 width=271) (actual time=15.683..15.683 rows=0 loops=1)

  • Join Filter: ((qa.property_consultant__c)::text = (ip.contact__c)::text)
6. 0.000 15.682 ↓ 0.0 0 1

Nested Loop (cost=0.61..58.10 rows=1 width=309) (actual time=15.682..15.682 rows=0 loops=1)

7. 0.001 15.682 ↓ 0.0 0 1

Nested Loop Left Join (cost=0.50..53.98 rows=1 width=275) (actual time=15.682..15.682 rows=0 loops=1)

  • Filter: (((ipq.employment_status__c)::text = 'Active'::text) OR ((COALESCE(ipq.employment_status__c, ''::character varying))::text = ''::text))
8. 0.000 15.681 ↓ 0.0 0 1

Nested Loop Left Join (cost=0.45..53.89 rows=1 width=294) (actual time=15.681..15.681 rows=0 loops=1)

9. 0.001 15.681 ↓ 0.0 0 1

Nested Loop Left Join (cost=0.33..49.77 rows=1 width=268) (actual time=15.681..15.681 rows=0 loops=1)

10. 0.000 15.680 ↓ 0.0 0 1

Nested Loop Left Join (cost=0.25..45.68 rows=1 width=262) (actual time=15.680..15.680 rows=0 loops=1)

11. 0.001 15.680 ↓ 0.0 0 1

Nested Loop Left Join (cost=0.20..41.62 rows=1 width=258) (actual time=15.680..15.680 rows=0 loops=1)

12. 15.679 15.679 ↓ 0.0 0 1

Index Scan using hc_idx_qa_form__c_shop_status__c on qa_form__c qa (cost=0.08..37.50 rows=1 width=192) (actual time=15.679..15.679 rows=0 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 >= '2017-11-01 07:00:00'::timestamp without time zone) AND (qa_form_cr (...)
  • Rows Removed by Filter: 1164
13. 0.000 0.000 ↓ 0.0 0

Index Scan using hcu_idx_case_sfid on "case" c (cost=0.11..4.12 rows=1 width=66) (never executed)

  • Index Cond: ((qa.case__c)::text = (sfid)::text)
14. 0.000 0.000 ↓ 0.0 0

Index Scan using account_idx_sfid on account acc (cost=0.06..4.06 rows=1 width=42) (never executed)

  • Index Cond: ((qa.case_account__c)::text = (sfid)::text)
15. 0.000 0.000 ↓ 0.0 0

Index Scan using property__c_idx_sfid on property__c pr (cost=0.08..4.09 rows=1 width=44) (never executed)

  • Index Cond: ((qa.case_property__c)::text = (sfid)::text)
16. 0.000 0.000 ↓ 0.0 0

Index Scan using contact_idx_sfid on contact cq (cost=0.11..4.12 rows=1 width=26) (never executed)

  • Index Cond: ((qa.qa_reviewer__c)::text = (sfid)::text)
  • Filter: ((recordtypeid)::text = '0120H000001O7IWQA0'::text)
17. 0.000 0.000 ↓ 0.0 0

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) (never executed)

  • Index Cond: ((contact__c)::text = (cq.sfid)::text)
18. 0.000 0.000 ↓ 0.0 0

Index Scan using contact_idx_sfid on contact cp (cost=0.11..4.12 rows=1 width=34) (never executed)

  • Index Cond: ((sfid)::text = (qa.property_consultant__c)::text)
  • Filter: ((recordtypeid)::text = '0120H000001O7IWQA0'::text)
19. 0.000 0.000 ↓ 0.0 0

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) (never executed)

  • Index Cond: ((contact__c)::text = (cp.sfid)::text)
  • Filter: ((employment_status__c)::text = 'Active'::text)
20. 0.000 0.000 ↓ 0.0 0

Index Scan using service_request1__c_idx_sfid on service_request1__c sr (cost=0.11..4.12 rows=1 width=57) (never executed)

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