explain.depesz.com

PostgreSQL's explain analyze made readable

Result: bfUT

Settings
# exclusive inclusive rows x rows loops node
1. 16.658 561.256 ↑ 13.8 10,261 1

Gather (cost=18,679.63..1,385,072.26 rows=141,290 width=1,810) (actual time=375.044..561.256 rows=10,261 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
2. 3.230 534.337 ↑ 17.2 3,420 3 / 3

Hash Left Join (cost=17,679.63..215,250.73 rows=58,871 width=1,655) (actual time=369.385..534.337 rows=3,420 loops=3)

  • Hash Cond: (ps_eps.earlypaymentmapping_id = bpt.mapping_id)
3. 3.125 531.101 ↑ 17.2 3,420 3 / 3

Hash Left Join (cost=17,669.41..215,019.73 rows=58,871 width=1,655) (actual time=369.366..531.101 rows=3,420 loops=3)

  • Hash Cond: (si.paymentadvice_id = ipa.id)
4. 2.985 527.972 ↑ 17.2 3,420 3 / 3

Hash Left Join (cost=17,659.19..214,854.97 rows=58,871 width=611) (actual time=369.349..527.972 rows=3,420 loops=3)

  • Hash Cond: (ps_eps.earlypaymentadvice_id = eps_epa.id)
5. 3.173 524.262 ↑ 17.2 3,420 3 / 3

Hash Left Join (cost=17,626.92..214,668.17 rows=58,871 width=597) (actual time=368.612..524.262 rows=3,420 loops=3)

  • Hash Cond: (si.currency_id = c.id)
6. 5.665 521.076 ↑ 17.2 3,420 3 / 3

Nested Loop Left Join (cost=17,625.79..214,403.34 rows=58,871 width=601) (actual time=368.582..521.076 rows=3,420 loops=3)

7. 3.213 508.570 ↑ 17.2 3,420 3 / 3

Hash Left Join (cost=17,625.35..185,113.67 rows=58,871 width=601) (actual time=368.567..508.570 rows=3,420 loops=3)

  • Hash Cond: (si.supplier_id = s_cb.id)
8. 3.201 503.833 ↑ 17.2 3,420 3 / 3

Hash Left Join (cost=17,414.23..184,747.61 rows=58,871 width=591) (actual time=367.031..503.833 rows=3,420 loops=3)

  • Hash Cond: (od_db.buyer_id = od_c_cb.id)
9. 3.334 499.112 ↑ 17.2 3,420 3 / 3

Hash Left Join (cost=17,203.10..184,381.55 rows=58,871 width=581) (actual time=365.495..499.112 rows=3,420 loops=3)

  • Hash Cond: (si.originatordivision_id = od_db.id)
10. 3.338 495.754 ↑ 17.2 3,420 3 / 3

Hash Left Join (cost=17,201.79..184,178.92 rows=58,871 width=569) (actual time=365.456..495.754 rows=3,420 loops=3)

  • Hash Cond: (ps_apfeps_t_apfda.bank_id = ps_eps_t_bc_cb.id)
11. 4.582 490.686 ↑ 17.2 3,420 3 / 3

Parallel Hash Left Join (cost=16,990.67..183,812.86 rows=58,871 width=559) (actual time=363.706..490.686 rows=3,420 loops=3)

  • Hash Cond: (ps_apffc_fc_fcb.id = ps_apffc_fc_afc.id)
12. 4.413 404.168 ↑ 17.2 3,420 3 / 3

Parallel Hash Left Join (cost=9,845.58..176,513.23 rows=58,871 width=443) (actual time=281.008..404.168 rows=3,420 loops=3)

  • Hash Cond: (ps_apfeps.financingcontext_id = ps_apffc_fc_fcb.id)
13. 6.555 271.619 ↑ 17.2 3,420 3 / 3

Nested Loop (cost=2.17..166,515.28 rows=58,871 width=427) (actual time=152.119..271.619 rows=3,420 loops=3)

14. 24.788 258.179 ↑ 17.1 3,443 3 / 3

Nested Loop (cost=1.73..128,761.94 rows=58,890 width=236) (actual time=152.102..258.179 rows=3,443 loops=3)

15. 99.301 180.268 ↑ 2.6 26,562 3 / 3

Hash Join (cost=1.30..9,862.01 rows=69,276 width=24) (actual time=152.074..180.268 rows=26,562 loops=3)

  • Hash Cond: (ps_apfeps.apfda_id = ps_apfeps_t_apfda.id)
16. 80.938 80.938 ↑ 1.3 277,103 3 / 3

Parallel Seq Scan on apfearlypaymentsettlement ps_apfeps (cost=0.00..8,758.79 rows=346,379 width=24) (actual time=0.005..80.938 rows=277,103 loops=3)

17. 0.007 0.029 ↑ 1.0 4 3 / 3

Hash (cost=1.25..1.25 rows=4 width=16) (actual time=0.029..0.029 rows=4 loops=3)

  • Buckets: 1,024 Batches: 1 Memory Usage: 9kB
18. 0.022 0.022 ↑ 1.0 4 3 / 3

Seq Scan on apfdebtoragreement ps_apfeps_t_apfda (cost=0.00..1.25 rows=4 width=16) (actual time=0.020..0.022 rows=4 loops=3)

  • Filter: (buyer_id = 67,002,626)
  • Rows Removed by Filter: 16
19. 53.123 53.123 ↓ 0.0 0 79,685 / 3

Index Scan using earlypaymentsettlement_pkey on earlypaymentsettlement ps_eps (cost=0.43..1.72 rows=1 width=220) (actual time=0.002..0.002 rows=0 loops=79,685)

  • Index Cond: (id = ps_apfeps.id)
  • Filter: (creationdate >= '2019-01-01'::date)
  • Rows Removed by Filter: 1
20. 6.885 6.885 ↑ 1.0 1 10,328 / 3

Index Scan using supplierinvoice_pkey on supplierinvoice si (cost=0.43..0.64 rows=1 width=207) (actual time=0.002..0.002 rows=1 loops=10,328)

  • Index Cond: (id = ps_eps.invoice_id)
  • Filter: (nettingbundle_id IS NULL)
  • Rows Removed by Filter: 0
21. 68.146 128.136 ↑ 1.3 131,499 3 / 3

Parallel Hash (cost=7,788.74..7,788.74 rows=164,374 width=24) (actual time=128.135..128.136 rows=131,499 loops=3)

  • Buckets: 524,288 Batches: 1 Memory Usage: 26,688kB
22. 59.990 59.990 ↑ 1.3 131,499 3 / 3

Parallel Seq Scan on financingcontextbase ps_apffc_fc_fcb (cost=0.00..7,788.74 rows=164,374 width=24) (actual time=0.007..59.990 rows=131,499 loops=3)

23. 43.328 81.936 ↑ 1.2 79,932 3 / 3

Parallel Hash (cost=5,896.15..5,896.15 rows=99,915 width=132) (actual time=81.936..81.936 rows=79,932 loops=3)

  • Buckets: 262,144 Batches: 1 Memory Usage: 20,832kB
24. 38.608 38.608 ↑ 1.2 79,932 3 / 3

Parallel Seq Scan on apffinancingcontext ps_apffc_fc_afc (cost=0.00..5,896.15 rows=99,915 width=132) (actual time=0.006..38.608 rows=79,932 loops=3)

25. 0.691 1.730 ↑ 1.0 1,650 3 / 3

Hash (cost=190.50..190.50 rows=1,650 width=26) (actual time=1.729..1.730 rows=1,650 loops=3)

  • Buckets: 2,048 Batches: 1 Memory Usage: 119kB
26. 1.039 1.039 ↑ 1.0 1,650 3 / 3

Seq Scan on corporatebase ps_eps_t_bc_cb (cost=0.00..190.50 rows=1,650 width=26) (actual time=0.016..1.039 rows=1,650 loops=3)

27. 0.010 0.024 ↑ 1.0 14 3 / 3

Hash (cost=1.14..1.14 rows=14 width=28) (actual time=0.023..0.024 rows=14 loops=3)

  • Buckets: 1,024 Batches: 1 Memory Usage: 9kB
28. 0.014 0.014 ↑ 1.0 14 3 / 3

Seq Scan on divisionbase od_db (cost=0.00..1.14 rows=14 width=28) (actual time=0.007..0.014 rows=14 loops=3)

29. 0.681 1.520 ↑ 1.0 1,650 3 / 3

Hash (cost=190.50..190.50 rows=1,650 width=26) (actual time=1.519..1.520 rows=1,650 loops=3)

  • Buckets: 2,048 Batches: 1 Memory Usage: 119kB
30. 0.839 0.839 ↑ 1.0 1,650 3 / 3

Seq Scan on corporatebase od_c_cb (cost=0.00..190.50 rows=1,650 width=26) (actual time=0.003..0.839 rows=1,650 loops=3)

31. 0.683 1.524 ↑ 1.0 1,650 3 / 3

Hash (cost=190.50..190.50 rows=1,650 width=26) (actual time=1.524..1.524 rows=1,650 loops=3)

  • Buckets: 2,048 Batches: 1 Memory Usage: 119kB
32. 0.841 0.841 ↑ 1.0 1,650 3 / 3

Seq Scan on corporatebase s_cb (cost=0.00..190.50 rows=1,650 width=26) (actual time=0.002..0.841 rows=1,650 loops=3)

33. 6.841 6.841 ↑ 1.0 1 10,261 / 3

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=10,261)

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

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

  • Buckets: 1,024 Batches: 1 Memory Usage: 9kB
35. 0.008 0.008 ↑ 1.0 6 3 / 3

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

36. 0.376 0.725 ↑ 1.0 945 3 / 3

Hash (cost=20.45..20.45 rows=945 width=30) (actual time=0.725..0.725 rows=945 loops=3)

  • Buckets: 1,024 Batches: 1 Memory Usage: 68kB
37. 0.349 0.349 ↑ 1.0 945 3 / 3

Seq Scan on earlypaymentadvice eps_epa (cost=0.00..20.45 rows=945 width=30) (actual time=0.006..0.349 rows=945 loops=3)

38. 0.000 0.004 ↓ 0.0 0 3 / 3

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

  • Buckets: 1,024 Batches: 1 Memory Usage: 8kB
39. 0.004 0.004 ↓ 0.0 0 3 / 3

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

40. 0.001 0.006 ↓ 0.0 0 3 / 3

Hash (cost=10.10..10.10 rows=10 width=16) (actual time=0.005..0.006 rows=0 loops=3)

  • Buckets: 1,024 Batches: 1 Memory Usage: 8kB
41. 0.005 0.005 ↓ 0.0 0 3 / 3

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

42.          

SubPlan (for Gather)

43. 10.261 10.261 ↑ 1.0 1 10,261

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

44. 0.000 0.000 ↓ 0.0 0 10,261

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=10,261)

  • Index Cond: (mapping_id = ps_eps.maturitypaymentmapping_id)
Planning time : 8.352 ms
Execution time : 564.088 ms