explain.depesz.com

PostgreSQL's explain analyze made readable

Result: h5d2

Settings
# exclusive inclusive rows x rows loops node
1. 0.000 486.143 ↓ 0.0 0 1

Nested Loop Left Join (cost=100.25..8,545.37 rows=1 width=16) (actual time=486.143..486.143 rows=0 loops=1)

  • Filter: (member_public_token.id IS NULL)
2. 0.000 486.143 ↓ 0.0 0 1

Nested Loop Left Join (cost=99.83..8,531.40 rows=1 width=16) (actual time=486.143..486.143 rows=0 loops=1)

  • Filter: (card.id IS NULL)
3. 1.035 486.143 ↓ 0.0 0 1

Nested Loop Left Join (cost=99.54..8,527.32 rows=1 width=16) (actual time=486.143..486.143 rows=0 loops=1)

  • Filter: ((((pre_qualification.application_status)::text = 'COMPLETE'::text) AND ((pre_qualification.underwriting_status)::text = 'APPROVED'::text) AND (pre_qualification.date_modified < '2019-09-30 00:00:00'::timestamp without time zone) AND (evaluation_result.date_created > '2019-09-01 00:00:00'::timestamp without time zone)) OR ((prescreen_offer.expiration_date > '2019-09-30 00:00:00'::timestamp without time zone) AND (prescreen_identity.date_modified < '2019-09-30 00:00:00'::timestamp without time zone) AND (prescreen_identity.date_modified > '2019-09-30 00:00:00'::timestamp without time zone)) OR (((snapshot.type)::text = 'FACEBOOK_PRESCREEN'::text) AND (fb_prescreen_offer.id IS NOT NULL) AND (fb_prescreen_offer.date_modified < '2019-09-30 00:00:00'::timestamp without time zone) AND (fb_prescreen_offer.date_modified > '2019-09-01 00:00:00'::timestamp without time zone)))
  • Rows Removed by Filter: 875
4. 0.509 482.483 ↓ 875.0 875 1

Nested Loop Left Join (cost=99.12..8,526.64 rows=1 width=69) (actual time=0.823..482.483 rows=875 loops=1)

5. 0.459 481.099 ↓ 875.0 875 1

Nested Loop Left Join (cost=98.68..8,525.77 rows=1 width=57) (actual time=0.820..481.099 rows=875 loops=1)

6. 0.444 480.640 ↓ 875.0 875 1

Nested Loop Left Join (cost=98.26..8,525.24 rows=1 width=53) (actual time=0.819..480.640 rows=875 loops=1)

7. 0.278 478.446 ↓ 875.0 875 1

Nested Loop Left Join (cost=97.83..8,517.46 rows=1 width=41) (actual time=0.814..478.446 rows=875 loops=1)

8. 0.581 475.543 ↓ 875.0 875 1

Nested Loop Left Join (cost=97.41..8,516.93 rows=1 width=33) (actual time=0.808..475.543 rows=875 loops=1)

  • Filter: (application.id IS NULL)
  • Rows Removed by Filter: 40
9. 0.223 473.132 ↑ 1.1 915 1

Nested Loop (cost=97.12..8,179.46 rows=1,000 width=33) (actual time=0.792..473.132 rows=915 loops=1)

10. 0.221 6.909 ↑ 1.0 1,000 1

Limit (cost=96.69..192.96 rows=1,000 width=20) (actual time=0.783..6.909 rows=1,000 loops=1)

11. 6.688 6.688 ↑ 538.9 2,000 1

Index Scan Backward using member_pkey on member (cost=0.43..103,751.61 rows=1,077,771 width=20) (actual time=0.011..6.688 rows=2,000 loops=1)

12. 466.000 466.000 ↑ 1.0 1 1,000

Index Scan using ix_snapshot_member_uuid on snapshot (cost=0.42..7.97 rows=1 width=33) (actual time=0.462..0.466 rows=1 loops=1,000)

  • Index Cond: (member_uuid = member.uuid)
13. 1.830 1.830 ↓ 0.0 0 915

Index Scan using ix_application_snapshot_id on application (cost=0.29..0.33 rows=1 width=8) (actual time=0.002..0.002 rows=0 loops=915)

  • Index Cond: (snapshot_id = snapshot.id)
14. 2.625 2.625 ↑ 1.0 1 875

Index Scan using ix_evaluation_result_snapshot_id on evaluation_result (cost=0.42..0.52 rows=1 width=12) (actual time=0.003..0.003 rows=1 loops=875)

  • Index Cond: (snapshot_id = snapshot.id)
15. 1.750 1.750 ↓ 0.0 0 875

Index Scan using prescreen_identity_member_uuid_key on prescreen_identity (cost=0.42..7.77 rows=1 width=28) (actual time=0.002..0.002 rows=0 loops=875)

  • Index Cond: (member_uuid = member.uuid)
16. 0.000 0.000 ↓ 0.0 0 875

Index Scan using ix_prescreen_offer_prescreen_identity_id on prescreen_offer (cost=0.42..0.51 rows=1 width=12) (actual time=0.000..0.000 rows=0 loops=875)

  • Index Cond: (prescreen_identity_id = prescreen_identity.id)
17. 0.875 0.875 ↓ 0.0 0 875

Index Scan using fb_prescreen_offer_snapshot_id_key on fb_prescreen_offer (cost=0.43..0.86 rows=1 width=16) (actual time=0.001..0.001 rows=0 loops=875)

  • Index Cond: (snapshot_id = snapshot.id)
18. 2.625 2.625 ↑ 1.0 1 875

Index Scan using ix_pre_qualification_snapshot_id on pre_qualification (cost=0.42..0.65 rows=1 width=32) (actual time=0.003..0.003 rows=1 loops=875)

  • Index Cond: (snapshot_id = snapshot.id)
19. 0.000 0.000 ↓ 0.0 0

Index Scan using ix_card_member_uuid on card (cost=0.29..4.07 rows=1 width=20) (never executed)

  • Index Cond: (member_uuid = member.uuid)
20. 0.000 0.000 ↓ 0.0 0

Index Scan using index_member_public_token_member_uuid on member_public_token (cost=0.42..13.96 rows=1 width=20) (never executed)

  • Index Cond: (member_uuid = member.uuid)
  • Filter: ((token_type)::text = 'APPLICATION_DEEPLINK'::text)
Planning time : 2.563 ms
Execution time : 486.317 ms