explain.depesz.com

PostgreSQL's explain analyze made readable

Result: i3NJ

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

Nested Loop Left Join (cost=3.99..8,449.11 rows=1 width=16) (actual time=700.561..700.561 rows=0 loops=1)

  • Filter: (member_public_token.id IS NULL)
2. 0.001 700.560 ↓ 0.0 0 1

Nested Loop Left Join (cost=3.57..8,435.13 rows=1 width=16) (actual time=700.560..700.560 rows=0 loops=1)

  • Filter: (card.id IS NULL)
3. 1.530 700.559 ↓ 0.0 0 1

Nested Loop Left Join (cost=3.28..8,431.06 rows=1 width=16) (actual time=700.559..700.559 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: 957
4. 0.000 668.405 ↓ 957.0 957 1

Nested Loop Left Join (cost=2.85..8,430.37 rows=1 width=69) (actual time=0.864..668.405 rows=957 loops=1)

5. 0.461 666.503 ↓ 957.0 957 1

Nested Loop Left Join (cost=2.42..8,429.50 rows=1 width=57) (actual time=0.863..666.503 rows=957 loops=1)

6. 0.668 666.042 ↓ 957.0 957 1

Nested Loop Left Join (cost=2.00..8,428.98 rows=1 width=53) (actual time=0.862..666.042 rows=957 loops=1)

7. 0.634 663.460 ↓ 957.0 957 1

Nested Loop Left Join (cost=1.57..8,421.19 rows=1 width=41) (actual time=0.855..663.460 rows=957 loops=1)

8. 0.778 649.428 ↓ 957.0 957 1

Nested Loop Left Join (cost=1.15..8,420.66 rows=1 width=33) (actual time=0.854..649.428 rows=957 loops=1)

  • Filter: (application.id IS NULL)
  • Rows Removed by Filter: 43
9. 0.851 646.650 ↑ 1.0 1,000 1

Nested Loop Left Join (cost=0.85..8,083.20 rows=1,000 width=33) (actual time=0.852..646.650 rows=1,000 loops=1)

10. 0.161 1.799 ↑ 1.0 1,000 1

Limit (cost=0.43..96.70 rows=1,000 width=20) (actual time=0.012..1.799 rows=1,000 loops=1)

11. 1.638 1.638 ↑ 1,077.4 1,000 1

Index Scan Backward using member_pkey on member (cost=0.43..103,718.62 rows=1,077,373 width=20) (actual time=0.010..1.638 rows=1,000 loops=1)

12. 644.000 644.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.640..0.644 rows=1 loops=1,000)

  • Index Cond: (member_uuid = member.uuid)
13. 2.000 2.000 ↓ 0.0 0 1,000

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=1,000)

  • Index Cond: (snapshot_id = snapshot.id)
14. 13.398 13.398 ↑ 1.0 1 957

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

  • Index Cond: (snapshot_id = snapshot.id)
15. 1.914 1.914 ↓ 0.0 0 957

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=957)

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

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=957)

  • Index Cond: (prescreen_identity_id = prescreen_identity.id)
17. 1.914 1.914 ↓ 0.0 0 957

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.002..0.002 rows=0 loops=957)

  • Index Cond: (snapshot_id = snapshot.id)
18. 30.624 30.624 ↑ 1.0 1 957

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

  • 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.786 ms
Execution time : 700.741 ms