explain.depesz.com

PostgreSQL's explain analyze made readable

Result: OdRK

Settings
# exclusive inclusive rows x rows loops node
1. 2.445 32.446 ↑ 1.1 1,272 1

Hash Left Join (cost=1,292.16..92,333.49 rows=1,417 width=1,810) (actual time=4.655..32.446 rows=1,272 loops=1)

  • Hash Cond: (ps_eps.earlypaymentmapping_id = bpt.mapping_id)
2. 2.102 28.727 ↑ 1.1 1,272 1

Nested Loop Left Join (cost=1,281.94..80,737.51 rows=1,417 width=1,655) (actual time=4.637..28.727 rows=1,272 loops=1)

3. 6.381 26.625 ↑ 1.1 1,272 1

Nested Loop Left Join (cost=1,281.66..80,323.02 rows=1,417 width=1,641) (actual time=4.632..26.625 rows=1,272 loops=1)

  • Join Filter: (si.originatordivision_id = od_db.id)
  • Rows Removed by Join Filter: 16536
4. 0.000 15.156 ↑ 1.1 1,272 1

Gather (cost=1,281.38..79,936.13 rows=1,417 width=1,619) (actual time=4.612..15.156 rows=1,272 loops=1)

  • Workers Planned: 3
  • Workers Launched: 3
5. 0.321 18.693 ↑ 1.4 318 4 / 4

Hash Left Join (cost=281.38..78,794.43 rows=457 width=1,619) (actual time=0.936..18.693 rows=318 loops=4)

  • Hash Cond: (si.paymentadvice_id = ipa.id)
6. 0.321 18.368 ↑ 1.4 318 4 / 4

Hash Left Join (cost=271.16..78,783.01 rows=457 width=575) (actual time=0.919..18.368 rows=318 loops=4)

  • Hash Cond: (si.currency_id = c.id)
7. 0.517 18.034 ↑ 1.4 318 4 / 4

Nested Loop Left Join (cost=270.02..78,779.83 rows=457 width=579) (actual time=0.894..18.034 rows=318 loops=4)

8. 0.328 16.881 ↑ 1.4 318 4 / 4

Hash Left Join (cost=269.59..75,593.52 rows=457 width=579) (actual time=0.881..16.881 rows=318 loops=4)

  • Hash Cond: (si.supplier_id = s_cb.id)
9. 0.453 16.526 ↑ 1.4 318 4 / 4

Nested Loop Left Join (cost=261.28..75,578.92 rows=457 width=569) (actual time=0.842..16.526 rows=318 loops=4)

10. 0.472 15.437 ↑ 1.4 318 4 / 4

Nested Loop Left Join (cost=260.86..75,353.23 rows=457 width=453) (actual time=0.832..15.437 rows=318 loops=4)

11. 0.303 14.329 ↑ 1.4 318 4 / 4

Hash Left Join (cost=260.44..75,136.26 rows=457 width=437) (actual time=0.821..14.329 rows=318 loops=4)

  • Hash Cond: (si.nettingbundle_id = nb.id)
  • Filter: ((si.nettingbundle_id IS NULL) OR (si.id = nb.surplus_id))
12. 0.382 13.883 ↑ 1.4 318 4 / 4

Hash Join (cost=254.57..75,129.19 rows=457 width=445) (actual time=0.664..13.883 rows=318 loops=4)

  • Hash Cond: (ps_apfeps.apfda_id = ps_apfeps_t_apfda.id)
13. 0.504 13.406 ↑ 1.4 318 4 / 4

Nested Loop (cost=251.39..75,119.72 rows=457 width=435) (actual time=0.515..13.406 rows=318 loops=4)

14. 3.639 12.266 ↑ 11.0 318 4 / 4

Nested Loop (cost=250.96..73,549.15 rows=3,505 width=419) (actual time=0.499..12.266 rows=318 loops=4)

15. 1.689 1.924 ↑ 1.3 3,352 4 / 4

Parallel Bitmap Heap Scan on supplierinvoice si (cost=250.53..42,721.90 rows=4,250 width=207) (actual time=0.290..1.924 rows=3,352 loops=4)

  • Recheck Cond: (supplier_id = 6167)
  • Heap Blocks: exact=188
16. 0.235 0.235 ↓ 1.0 13,406 1 / 4

Bitmap Index Scan on supplierinvoice_supplier_idx (cost=0.00..247.24 rows=13,174 width=0) (actual time=0.939..0.939 rows=13,406 loops=1)

  • Index Cond: (supplier_id = 6167)
17. 6.703 6.703 ↓ 0.0 0 13,406 / 4

Index Scan using earlypaymentsettlement_invoice_idx on earlypaymentsettlement ps_eps (cost=0.43..7.25 rows=1 width=220) (actual time=0.002..0.002 rows=0 loops=13,406)

  • Index Cond: (invoice_id = si.id)
  • Filter: (creationdate >= '2019-01-01'::date)
  • Rows Removed by Filter: 1
18. 0.636 0.636 ↑ 1.0 1 1,272 / 4

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

  • Index Cond: (id = ps_eps.id)
19. 0.014 0.095 ↑ 1.0 20 4 / 4

Hash (cost=2.93..2.93 rows=20 width=26) (actual time=0.095..0.095 rows=20 loops=4)

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
20. 0.020 0.081 ↑ 1.0 20 4 / 4

Merge Right Join (cost=2.05..2.93 rows=20 width=26) (actual time=0.058..0.081 rows=20 loops=4)

  • Merge Cond: (ps_eps_t_bc_cb.id = ps_apfeps_t_apfda.bank_id)
21. 0.014 0.014 ↑ 275.0 6 4 / 4

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.012..0.014 rows=6 loops=4)

22. 0.031 0.047 ↑ 1.0 20 4 / 4

Sort (cost=1.63..1.68 rows=20 width=16) (actual time=0.040..0.047 rows=20 loops=4)

  • Sort Key: ps_apfeps_t_apfda.bank_id
  • Sort Method: quicksort Memory: 25kB
  • Worker 0: Sort Method: quicksort Memory: 25kB
  • Worker 1: Sort Method: quicksort Memory: 25kB
  • Worker 2: Sort Method: quicksort Memory: 25kB
23. 0.016 0.016 ↑ 1.0 20 4 / 4

Seq Scan on apfdebtoragreement ps_apfeps_t_apfda (cost=0.00..1.20 rows=20 width=16) (actual time=0.009..0.016 rows=20 loops=4)

24. 0.072 0.143 ↑ 1.0 172 4 / 4

Hash (cost=3.72..3.72 rows=172 width=16) (actual time=0.143..0.143 rows=172 loops=4)

  • Buckets: 1024 Batches: 1 Memory Usage: 17kB
25. 0.071 0.071 ↑ 1.0 172 4 / 4

Seq Scan on nettingbundle nb (cost=0.00..3.72 rows=172 width=16) (actual time=0.006..0.071 rows=172 loops=4)

26. 0.636 0.636 ↑ 1.0 1 1,272 / 4

Index Scan using financingcontextbase_pkey on financingcontextbase ps_apffc_fc_fcb (cost=0.42..0.47 rows=1 width=24) (actual time=0.002..0.002 rows=1 loops=1,272)

  • Index Cond: (id = ps_apfeps.financingcontext_id)
27. 0.636 0.636 ↑ 1.0 1 1,272 / 4

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

  • Index Cond: (ps_apffc_fc_fcb.id = id)
28. 0.004 0.027 ↑ 1.0 1 4 / 4

Hash (cost=8.29..8.29 rows=1 width=26) (actual time=0.026..0.027 rows=1 loops=4)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
29. 0.023 0.023 ↑ 1.0 1 4 / 4

Index Scan using corporatebase_pkey on corporatebase s_cb (cost=0.28..8.29 rows=1 width=26) (actual time=0.022..0.023 rows=1 loops=4)

  • Index Cond: (id = 6167)
30. 0.636 0.636 ↑ 1.0 1 1,272 / 4

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

  • Index Cond: (si.importbatch_id = id)
31. 0.005 0.013 ↑ 1.0 6 4 / 4

Hash (cost=1.06..1.06 rows=6 width=12) (actual time=0.013..0.013 rows=6 loops=4)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
32. 0.008 0.008 ↑ 1.0 6 4 / 4

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

33. 0.001 0.004 ↓ 0.0 0 4 / 4

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

  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
34. 0.003 0.003 ↓ 0.0 0 4 / 4

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

35. 5.021 5.088 ↑ 1.0 14 1,272

Materialize (cost=0.28..89.35 rows=14 width=38) (actual time=0.000..0.004 rows=14 loops=1,272)

36. 0.019 0.067 ↑ 1.0 14 1

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

37. 0.006 0.006 ↑ 1.0 14 1

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

38. 0.042 0.042 ↑ 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.003..0.003 rows=1 loops=14)

  • Index Cond: (id = od_db.buyer_id)
39. 0.000 0.000 ↓ 0.0 0 1,272

Index Scan using earlypaymentadvice_pkey on earlypaymentadvice eps_epa (cost=0.28..0.29 rows=1 width=30) (actual time=0.000..0.000 rows=0 loops=1,272)

  • Index Cond: (id = ps_eps.earlypaymentadvice_id)
40. 0.001 0.002 ↓ 0.0 0 1

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

  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
41. 0.001 0.001 ↓ 0.0 0 1

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

42.          

SubPlan (for Hash Left Join)

43. 1.272 1.272 ↑ 1.0 1 1,272

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

44. 0.000 0.000 ↓ 0.0 0 1,272

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,272)

  • Index Cond: (mapping_id = ps_eps.maturitypaymentmapping_id)
Planning time : 8.209 ms
Execution time : 33.321 ms