explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 7et7

Settings
# exclusive inclusive rows x rows loops node
1. 2.349 31.903 ↑ 1.1 1,272 1

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

  • Hash Cond: (ps_eps.earlypaymentmapping_id = bpt.mapping_id)
2. 2.052 28.280 ↑ 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.698..28.280 rows=1,272 loops=1)

3. 5.973 26.228 ↑ 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.693..26.228 rows=1,272 loops=1)

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

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

  • Workers Planned: 3
  • Workers Launched: 3
5. 0.308 18.420 ↑ 1.4 318 4 / 4

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

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

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

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

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

8. 0.313 16.645 ↑ 1.4 318 4 / 4

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

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

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

10. 0.440 15.237 ↑ 1.4 318 4 / 4

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

11. 0.294 14.161 ↑ 1.4 318 4 / 4

Hash Left Join (cost=260.44..75,136.26 rows=457 width=437) (actual time=0.844..14.161 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.373 13.723 ↑ 1.4 318 4 / 4

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

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

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

14. 3.516 12.135 ↑ 11.0 318 4 / 4

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

15. 1.682 1.916 ↑ 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.298..1.916 rows=3,352 loops=4)

  • Recheck Cond: (supplier_id = 6167)
  • Heap Blocks: exact=196
16. 0.234 0.234 ↓ 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.934..0.935 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.013 0.100 ↑ 1.0 20 4 / 4

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

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

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

  • Merge Cond: (ps_eps_t_bc_cb.id = ps_apfeps_t_apfda.bank_id)
21. 0.015 0.015 ↑ 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.015 rows=6 loops=4)

22. 0.035 0.051 ↑ 1.0 20 4 / 4

Sort (cost=1.63..1.68 rows=20 width=16) (actual time=0.044..0.051 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.144 ↑ 1.0 172 4 / 4

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

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

Seq Scan on nettingbundle nb (cost=0.00..3.72 rows=172 width=16) (actual time=0.007..0.072 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.024 ↑ 1.0 1 4 / 4

Hash (cost=8.29..8.29 rows=1 width=26) (actual time=0.023..0.024 rows=1 loops=4)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
29. 0.020 0.020 ↑ 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.019..0.020 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.020 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.020 0.068 ↑ 1.0 14 1

Nested Loop Left Join (cost=0.28..89.28 rows=14 width=38) (actual time=0.011..0.068 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.000 0.002 ↓ 0.0 0 1

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

  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
41. 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.001..0.002 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.248 ms
Execution time : 32.738 ms