explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 8UOy

Settings
# exclusive inclusive rows x rows loops node
1. 1.637 27.482 ↓ 5.3 1,135 1

Hash Left Join (cost=15,376.48..17,150.48 rows=216 width=1,826) (actual time=20.890..27.482 rows=1,135 loops=1)

  • Hash Cond: (ps_eps.earlypaymentmapping_id = bpt.mapping_id)
2. 0.736 24.707 ↓ 5.3 1,135 1

Hash Left Join (cost=15,366.25..15,374.17 rows=216 width=1,639) (actual time=20.863..24.707 rows=1,135 loops=1)

  • Hash Cond: (si.paymentadvice_id = ipa.id)
3. 0.733 23.969 ↓ 5.3 1,135 1

Hash Left Join (cost=15,356.03..15,363.38 rows=216 width=595) (actual time=20.852..23.969 rows=1,135 loops=1)

  • Hash Cond: (ps_eps.earlypaymentadvice_id = eps_epa.id)
4. 0.878 22.663 ↓ 5.3 1,135 1

Hash Left Join (cost=15,323.76..15,330.55 rows=216 width=581) (actual time=20.270..22.663 rows=1,135 loops=1)

  • Hash Cond: (si.originatordivision_id = od_db.id)
5. 1.241 21.703 ↓ 5.3 1,135 1

Merge Right Join (cost=15,234.31..15,238.13 rows=216 width=559) (actual time=20.174..21.703 rows=1,135 loops=1)

  • Merge Cond: (ps_eps_t_bc_cb.id = ps_apfeps_t_apfda.bank_id)
6. 0.022 0.022 ↑ 275.0 6 1

Index Scan using corporatebase_pkey on corporatebase ps_eps_t_bc_cb (cost=0.28..234.48 rows=1,650 width=26) (actual time=0.016..0.022 rows=6 loops=1)

7. 1.409 20.440 ↓ 5.3 1,135 1

Sort (cost=15,233.89..15,234.43 rows=216 width=549) (actual time=20.142..20.440 rows=1,135 loops=1)

  • Sort Key: ps_apfeps_t_apfda.bank_id
  • Sort Method: quicksort Memory: 634kB
8. 5.081 19.031 ↓ 5.3 1,135 1

Gather (cost=1,038.29..15,225.52 rows=216 width=549) (actual time=2.703..19.031 rows=1,135 loops=1)

  • Workers Planned: 1
  • Workers Launched: 1
9. 0.519 13.950 ↓ 4.5 568 2 / 2

Hash Left Join (cost=38.29..14,203.92 rows=127 width=549) (actual time=0.308..13.950 rows=568 loops=2)

  • Hash Cond: (si.currency_id = c.id)
10. 0.899 13.420 ↓ 4.5 568 2 / 2

Nested Loop Left Join (cost=37.16..14,202.21 rows=127 width=553) (actual time=0.286..13.420 rows=568 loops=2)

11. 0.559 11.386 ↓ 4.5 568 2 / 2

Nested Loop Left Join (cost=36.73..14,139.03 rows=127 width=553) (actual time=0.274..11.386 rows=568 loops=2)

12. 0.845 9.692 ↓ 4.5 568 2 / 2

Nested Loop Left Join (cost=36.45..14,101.55 rows=127 width=543) (actual time=0.265..9.692 rows=568 loops=2)

13. 0.601 7.712 ↓ 4.5 568 2 / 2

Nested Loop Left Join (cost=36.03..14,038.83 rows=127 width=427) (actual time=0.252..7.712 rows=568 loops=2)

14. 0.519 5.976 ↓ 4.5 568 2 / 2

Hash Left Join (cost=35.60..13,982.29 rows=127 width=427) (actual time=0.236..5.976 rows=568 loops=2)

  • Hash Cond: (ps_apfeps.apfda_id = ps_apfeps_t_apfda.id)
15. 0.554 5.434 ↓ 4.5 568 2 / 2

Nested Loop (cost=34.15..13,980.44 rows=127 width=427) (actual time=0.171..5.434 rows=568 loops=2)

16. 1.112 3.177 ↓ 4.5 568 2 / 2

Nested Loop (cost=33.72..12,931.16 rows=127 width=236) (actual time=0.158..3.177 rows=568 loops=2)

17. 0.356 0.480 ↑ 1.2 792 2 / 2

Parallel Bitmap Heap Scan on earlypaymentsettlement ps_eps (cost=33.30..6,257.58 rows=976 width=220) (actual time=0.145..0.480 rows=792 loops=2)

  • Recheck Cond: (creationdate = '2019-01-01'::date)
  • Heap Blocks: exact=34
18. 0.124 0.124 ↑ 1.0 1,585 1 / 2

Bitmap Index Scan on earlypaymentsettlement_creationdate_idx (cost=0.00..32.88 rows=1,660 width=0) (actual time=0.247..0.248 rows=1,585 loops=1)

  • Index Cond: (creationdate = '2019-01-01'::date)
19. 1.585 1.585 ↑ 1.0 1 1,585 / 2

Index Scan using apfearlypaymentsettlement_pkey on apfearlypaymentsettlement ps_apfeps (cost=0.42..6.84 rows=1 width=24) (actual time=0.002..0.002 rows=1 loops=1,585)

  • Index Cond: (id = ps_eps.id)
20. 1.703 1.703 ↑ 1.0 1 1,135 / 2

Index Scan using supplierinvoice_pkey on supplierinvoice si (cost=0.43..8.26 rows=1 width=207) (actual time=0.003..0.003 rows=1 loops=1,135)

  • Index Cond: (id = ps_eps.invoice_id)
  • Filter: (nettingbundle_id IS NULL)
21. 0.010 0.023 ↑ 1.0 20 2 / 2

Hash (cost=1.20..1.20 rows=20 width=16) (actual time=0.022..0.023 rows=20 loops=2)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
22. 0.013 0.013 ↑ 1.0 20 2 / 2

Seq Scan on apfdebtoragreement ps_apfeps_t_apfda (cost=0.00..1.20 rows=20 width=16) (actual time=0.006..0.013 rows=20 loops=2)

23. 1.135 1.135 ↑ 1.0 1 1,135 / 2

Index Only Scan using financingcontextbase_pkey on financingcontextbase ps_apffc_fc_fcb (cost=0.42..0.45 rows=1 width=8) (actual time=0.002..0.002 rows=1 loops=1,135)

  • Index Cond: (id = ps_apfeps.financingcontext_id)
  • Heap Fetches: 0
24. 1.135 1.135 ↑ 1.0 1 1,135 / 2

Index Scan using apffinancingcontext_pkey on apffinancingcontext ps_apffc_fc_afc (cost=0.42..0.49 rows=1 width=140) (actual time=0.002..0.002 rows=1 loops=1,135)

  • Index Cond: (ps_apffc_fc_fcb.id = id)
25. 1.135 1.135 ↑ 1.0 1 1,135 / 2

Index Scan using corporatebase_pkey on corporatebase s_cb (cost=0.28..0.30 rows=1 width=26) (actual time=0.002..0.002 rows=1 loops=1,135)

  • Index Cond: (id = si.supplier_id)
26. 1.135 1.135 ↑ 1.0 1 1,135 / 2

Index Scan using arpimportbatch_pkey on arpimportbatch ib (cost=0.43..0.50 rows=1 width=16) (actual time=0.002..0.002 rows=1 loops=1,135)

  • Index Cond: (si.importbatch_id = id)
27. 0.005 0.011 ↑ 1.0 6 2 / 2

Hash (cost=1.06..1.06 rows=6 width=12) (actual time=0.011..0.011 rows=6 loops=2)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
28. 0.006 0.006 ↑ 1.0 6 2 / 2

Seq Scan on crxcurrency c (cost=0.00..1.06 rows=6 width=12) (actual time=0.004..0.006 rows=6 loops=2)

29. 0.010 0.082 ↑ 1.0 14 1

Hash (cost=89.28..89.28 rows=14 width=38) (actual time=0.082..0.082 rows=14 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
30. 0.032 0.072 ↑ 1.0 14 1

Nested Loop Left Join (cost=0.28..89.28 rows=14 width=38) (actual time=0.024..0.072 rows=14 loops=1)

31. 0.012 0.012 ↑ 1.0 14 1

Seq Scan on divisionbase od_db (cost=0.00..1.14 rows=14 width=28) (actual time=0.008..0.012 rows=14 loops=1)

32. 0.028 0.028 ↑ 1.0 1 14

Index Scan using corporatebase_pkey on corporatebase od_c_cb (cost=0.28..6.29 rows=1 width=26) (actual time=0.002..0.002 rows=1 loops=14)

  • Index Cond: (id = od_db.buyer_id)
33. 0.288 0.573 ↑ 1.0 945 1

Hash (cost=20.45..20.45 rows=945 width=30) (actual time=0.573..0.573 rows=945 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 68kB
34. 0.285 0.285 ↑ 1.0 945 1

Seq Scan on earlypaymentadvice eps_epa (cost=0.00..20.45 rows=945 width=30) (actual time=0.005..0.285 rows=945 loops=1)

35. 0.000 0.002 ↓ 0.0 0 1

Hash (cost=10.10..10.10 rows=10 width=1,052) (actual time=0.002..0.002 rows=0 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
36. 0.002 0.002 ↓ 0.0 0 1

Seq Scan on invoicepaymentadvice ipa (cost=0.00..10.10 rows=10 width=1,052) (actual time=0.002..0.002 rows=0 loops=1)

37. 0.001 0.003 ↓ 0.0 0 1

Hash (cost=10.10..10.10 rows=10 width=16) (actual time=0.003..0.003 rows=0 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
38. 0.002 0.002 ↓ 0.0 0 1

Seq Scan on bankpaymenttransaction bpt (cost=0.00..10.10 rows=10 width=16) (actual time=0.002..0.002 rows=0 loops=1)

39.          

SubPlan (for Hash Left Join)

40. 1.135 1.135 ↑ 1.0 1 1,135

Aggregate (cost=8.15..8.16 rows=1 width=8) (actual time=0.001..0.001 rows=1 loops=1,135)

41. 0.000 0.000 ↓ 0.0 0 1,135

Index Scan using bankpaymenttransaction_mapping_idx on bankpaymenttransaction bpt_1 (cost=0.14..8.15 rows=1 width=8) (actual time=0.000..0.000 rows=0 loops=1,135)

  • Index Cond: (mapping_id = ps_eps.maturitypaymentmapping_id)
Planning time : 8.121 ms
Execution time : 28.296 ms