explain.depesz.com

PostgreSQL's explain analyze made readable

Result: gsgm

Settings
# exclusive inclusive rows x rows loops node
1. 0.002 535.857 ↓ 0.0 0 1

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

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

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

  • Filter: (card.id IS NULL)
3. 1.156 535.855 ↓ 0.0 0 1

Nested Loop Left Join (cost=3.28..8,431.06 rows=1 width=16) (actual time=535.855..535.855 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: 960
4. 0.003 528.939 ↓ 960.0 960 1

Nested Loop Left Join (cost=2.85..8,430.38 rows=1 width=69) (actual time=2.176..528.939 rows=960 loops=1)

5. 0.548 527.016 ↓ 960.0 960 1

Nested Loop Left Join (cost=2.42..8,429.51 rows=1 width=57) (actual time=2.170..527.016 rows=960 loops=1)

6. 0.213 526.468 ↓ 960.0 960 1

Nested Loop Left Join (cost=2.00..8,428.98 rows=1 width=53) (actual time=2.169..526.468 rows=960 loops=1)

7. 0.202 523.375 ↓ 960.0 960 1

Nested Loop Left Join (cost=1.57..8,421.20 rows=1 width=41) (actual time=2.162..523.375 rows=960 loops=1)

8. 0.513 505.893 ↓ 960.0 960 1

Nested Loop Left Join (cost=1.15..8,420.66 rows=1 width=33) (actual time=2.153..505.893 rows=960 loops=1)

  • Filter: (application.id IS NULL)
  • Rows Removed by Filter: 40
9. 0.973 503.380 ↑ 1.0 1,000 1

Nested Loop Left Join (cost=0.85..8,083.19 rows=1,000 width=33) (actual time=2.145..503.380 rows=1,000 loops=1)

10. 0.206 4.407 ↑ 1.0 1,000 1

Limit (cost=0.43..96.69 rows=1,000 width=20) (actual time=1.439..4.407 rows=1,000 loops=1)

11. 4.201 4.201 ↑ 1,077.6 1,000 1

Index Scan Backward using member_pkey on member (cost=0.43..103,737.18 rows=1,077,597 width=20) (actual time=1.437..4.201 rows=1,000 loops=1)

12. 498.000 498.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.495..0.498 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. 17.280 17.280 ↑ 1.0 1 960

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

  • Index Cond: (snapshot_id = snapshot.id)
15. 2.880 2.880 ↓ 0.0 0 960

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

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

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

  • Index Cond: (prescreen_identity_id = prescreen_identity.id)
17. 1.920 1.920 ↓ 0.0 0 960

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

  • Index Cond: (snapshot_id = snapshot.id)
18. 5.760 5.760 ↑ 1.0 1 960

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

  • 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 : 7.352 ms
Execution time : 536.086 ms