explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 9VMS

Settings
# exclusive inclusive rows x rows loops node
1. 31.415 288.321 ↑ 1.2 12,760 1

Hash Left Join (cost=3,699.79..317,760.34 rows=14,823 width=1,770) (actual time=29.946..288.321 rows=12,760 loops=1)

  • Hash Cond: (ps_eps.earlypaymentmapping_id = bpt.mapping_id)
2. 11.965 196.785 ↑ 1.2 12,760 1

Hash Left Join (cost=1,820.52..192,349.56 rows=14,823 width=1,793) (actual time=7.946..196.785 rows=12,760 loops=1)

  • Hash Cond: ((ps_abseps_t_absda.id = ifca.absda_id) AND (si.currency_id = ifca.currency_id))
3. 28.859 184.771 ↑ 1.2 12,760 1

Nested Loop (cost=1,818.80..192,173.14 rows=14,823 width=1,685) (actual time=7.877..184.771 rows=12,760 loops=1)

  • Join Filter: (si.currency_id = c.id)
  • Rows Removed by Join Filter: 63800
4. 0.014 0.014 ↑ 1.0 6 1

Index Scan using crxcurrency_pkey on crxcurrency c (cost=0.13..12.22 rows=6 width=12) (actual time=0.008..0.014 rows=6 loops=1)

5. 29.218 155.898 ↑ 1.2 12,760 6

Materialize (cost=1,818.67..190,863.90 rows=14,823 width=1,681) (actual time=1.311..25.983 rows=12,760 loops=6)

6. 10.022 126.680 ↑ 1.2 12,760 1

Hash Left Join (cost=1,818.67..190,789.79 rows=14,823 width=1,681) (actual time=7.856..126.680 rows=12,760 loops=1)

  • Hash Cond: (si.paymentadvice_id = ipa.id)
7. 9.590 116.656 ↑ 1.2 12,760 1

Hash Left Join (cost=1,808.44..190,740.65 rows=14,823 width=637) (actual time=7.837..116.656 rows=12,760 loops=1)

  • Hash Cond: (ps_eps.earlypaymentadvice_id = eps_epa.id)
8. 15.134 107.026 ↑ 1.2 12,760 1

Nested Loop Left Join (cost=1,806.54..190,699.84 rows=14,823 width=623) (actual time=7.779..107.026 rows=12,760 loops=1)

9. 10.443 66.372 ↑ 1.2 12,760 1

Hash Left Join (cost=1,806.11..89,425.49 rows=14,823 width=623) (actual time=7.767..66.372 rows=12,760 loops=1)

  • Hash Cond: (ps_abseps_t_absda.bank_id = ps_eps_t_bc_cb.id)
10. 10.962 54.403 ↑ 1.2 12,760 1

Hash Left Join (cost=1,594.98..89,175.36 rows=14,823 width=613) (actual time=6.226..54.403 rows=12,760 loops=1)

  • Hash Cond: (si.supplier_id = s_cb.id)
11. 10.556 41.908 ↑ 1.2 12,760 1

Hash Left Join (cost=1,383.86..88,925.22 rows=14,823 width=603) (actual time=4.676..41.908 rows=12,760 loops=1)

  • Hash Cond: (od_db.buyer_id = od_c_cb.id)
12. 13.697 31.340 ↑ 1.2 12,760 1

Nested Loop (cost=1,375.55..88,713.10 rows=14,823 width=593) (actual time=4.650..31.340 rows=12,760 loops=1)

13. 0.012 0.012 ↑ 1.0 1 1

Seq Scan on capfloorauction cfa (cost=0.00..1.31 rows=1 width=21) (actual time=0.008..0.012 rows=1 loops=1)

  • Filter: (id = 6656)
  • Rows Removed by Filter: 24
14. 0.000 17.631 ↑ 1.2 12,760 1

Gather (cost=1,375.55..88,563.55 rows=14,823 width=588) (actual time=4.639..17.631 rows=12,760 loops=1)

  • Workers Planned: 3
  • Workers Launched: 3
15. 3.015 41.701 ↑ 1.5 3,190 4 / 4

Hash Left Join (cost=375.55..86,081.25 rows=4,782 width=588) (actual time=2.248..41.701 rows=3,190 loops=4)

  • Hash Cond: (ps_absfc_fc_fcb.id = ps_absfc_fc_afc.id)
16. 2.631 36.916 ↑ 1.5 3,190 4 / 4

Nested Loop Left Join (cost=284.30..85,977.45 rows=4,782 width=471) (actual time=0.451..36.916 rows=3,190 loops=4)

17. 2.762 27.905 ↑ 1.5 3,190 4 / 4

Hash Left Join (cost=283.88..83,847.20 rows=4,782 width=455) (actual time=0.439..27.905 rows=3,190 loops=4)

  • Hash Cond: (ps_abseps.absda_id = ps_abseps_t_absda.id)
18. 2.734 25.120 ↑ 1.5 3,190 4 / 4

Nested Loop Left Join (cost=282.56..83,829.53 rows=4,782 width=447) (actual time=0.397..25.120 rows=3,190 loops=4)

19. 2.879 16.006 ↑ 1.5 3,190 4 / 4

Hash Join (cost=282.13..81,516.98 rows=4,782 width=431) (actual time=0.386..16.006 rows=3,190 loops=4)

  • Hash Cond: (si.originatordivision_id = od_db.id)
20. 4.573 13.099 ↑ 1.5 3,190 4 / 4

Nested Loop Left Join (cost=279.78..81,498.28 rows=4,782 width=419) (actual time=0.308..13.099 rows=3,190 loops=4)

21. 1.933 2.146 ↑ 1.5 3,190 4 / 4

Parallel Bitmap Heap Scan on supplierinvoice si (cost=279.35..47,334.75 rows=4,782 width=215) (actual time=0.292..2.146 rows=3,190 loops=4)

  • Recheck Cond: (lastauction_id = 6656)
  • Filter: (nettingbundle_id IS NULL)
  • Rows Removed by Filter: 500
  • Heap Blocks: exact=1
22. 0.212 0.212 ↑ 1.0 14,760 1 / 4

Bitmap Index Scan on supplierinvoice_lastauction_idx (cost=0.00..275.64 rows=14,828 width=0) (actual time=0.850..0.850 rows=14,760 loops=1)

  • Index Cond: (lastauction_id = 6656)
23. 6.380 6.380 ↑ 1.0 1 12,760 / 4

Index Scan using earlypaymentsettlement_invoice_uq on earlypaymentsettlement ps_eps (cost=0.43..7.14 rows=1 width=220) (actual time=0.002..0.002 rows=1 loops=12,760)

  • Index Cond: (si.id = invoice_id)
24. 0.010 0.028 ↑ 1.0 14 4 / 4

Hash (cost=2.17..2.17 rows=14 width=28) (actual time=0.028..0.028 rows=14 loops=4)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
25. 0.018 0.018 ↑ 1.0 14 4 / 4

Seq Scan on divisionbase od_db (cost=0.00..2.17 rows=14 width=28) (actual time=0.009..0.018 rows=14 loops=4)

  • Filter: (buyer_id = 64608300)
26. 6.380 6.380 ↑ 1.0 1 12,760 / 4

Index Scan using absearlypaymentsettlement_pkey on absearlypaymentsettlement ps_abseps (cost=0.43..0.48 rows=1 width=24) (actual time=0.002..0.002 rows=1 loops=12,760)

  • Index Cond: (ps_eps.id = id)
27. 0.009 0.023 ↑ 1.0 14 4 / 4

Hash (cost=1.14..1.14 rows=14 width=16) (actual time=0.023..0.023 rows=14 loops=4)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
28. 0.014 0.014 ↑ 1.0 14 4 / 4

Seq Scan on absdebtoragreement ps_abseps_t_absda (cost=0.00..1.14 rows=14 width=16) (actual time=0.009..0.014 rows=14 loops=4)

29. 6.380 6.380 ↑ 1.0 1 12,760 / 4

Index Scan using financingcontextbase_pkey on financingcontextbase ps_absfc_fc_fcb (cost=0.42..0.45 rows=1 width=24) (actual time=0.002..0.002 rows=1 loops=12,760)

  • Index Cond: (id = ps_abseps.financingcontext_id)
30. 0.902 1.770 ↑ 1.0 2,100 4 / 4

Hash (cost=65.00..65.00 rows=2,100 width=133) (actual time=1.770..1.770 rows=2,100 loops=4)

  • Buckets: 4096 Batches: 1 Memory Usage: 197kB
31. 0.868 0.868 ↑ 1.0 2,100 4 / 4

Seq Scan on absfinancingcontext ps_absfc_fc_afc (cost=0.00..65.00 rows=2,100 width=133) (actual time=0.005..0.868 rows=2,100 loops=4)

32. 0.004 0.012 ↑ 1.0 1 1

Hash (cost=8.29..8.29 rows=1 width=26) (actual time=0.012..0.012 rows=1 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
33. 0.008 0.008 ↑ 1.0 1 1

Index Scan using corporatebase_pkey on corporatebase od_c_cb (cost=0.28..8.29 rows=1 width=26) (actual time=0.007..0.008 rows=1 loops=1)

  • Index Cond: (id = 64608300)
34. 0.559 1.533 ↑ 1.0 1,650 1

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

  • Buckets: 2048 Batches: 1 Memory Usage: 119kB
35. 0.974 0.974 ↑ 1.0 1,650 1

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

36. 0.702 1.526 ↑ 1.0 1,650 1

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

  • Buckets: 2048 Batches: 1 Memory Usage: 119kB
37. 0.824 0.824 ↑ 1.0 1,650 1

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

38. 25.520 25.520 ↑ 1.0 1 12,760

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

  • Index Cond: (si.importbatch_id = id)
39. 0.021 0.040 ↑ 1.0 40 1

Hash (cost=1.40..1.40 rows=40 width=30) (actual time=0.039..0.040 rows=40 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 11kB
40. 0.019 0.019 ↑ 1.0 40 1

Seq Scan on earlypaymentadvice eps_epa (cost=0.00..1.40 rows=40 width=30) (actual time=0.003..0.019 rows=40 loops=1)

41. 0.001 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
42. 0.001 0.001 ↓ 0.0 0 1

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

43. 0.007 0.049 ↑ 1.0 6 1

Hash (cost=1.63..1.63 rows=6 width=140) (actual time=0.048..0.049 rows=6 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
44. 0.009 0.042 ↑ 1.0 6 1

Merge Right Join (cost=1.42..1.63 rows=6 width=140) (actual time=0.033..0.042 rows=6 loops=1)

  • Merge Cond: (cba.id = ifca.maturitypaymentsaccount_id)
45. 0.012 0.012 ↑ 544.3 3 1

Index Scan using corporatebankaccount_pkey on corporatebankaccount cba (cost=0.28..99.78 rows=1,633 width=132) (actual time=0.010..0.012 rows=3 loops=1)

46. 0.015 0.021 ↑ 1.0 6 1

Sort (cost=1.14..1.15 rows=6 width=24) (actual time=0.019..0.021 rows=6 loops=1)

  • Sort Key: ifca.maturitypaymentsaccount_id
  • Sort Method: quicksort Memory: 25kB
47. 0.006 0.006 ↑ 1.0 6 1

Seq Scan on fiduciarycashaccount ifca (cost=0.00..1.06 rows=6 width=24) (actual time=0.004..0.006 rows=6 loops=1)

48. 9.429 21.841 ↑ 1.0 30,234 1

Hash (cost=1,501.34..1,501.34 rows=30,234 width=16) (actual time=21.841..21.841 rows=30,234 loops=1)

  • Buckets: 32768 Batches: 1 Memory Usage: 1674kB
49. 12.412 12.412 ↑ 1.0 30,234 1

Seq Scan on bankpaymenttransaction bpt (cost=0.00..1,501.34 rows=30,234 width=16) (actual time=0.301..12.412 rows=30,234 loops=1)

50.          

SubPlan (for Hash Left Join)

51. 12.760 38.280 ↑ 1.0 1 12,760

Aggregate (cost=8.31..8.32 rows=1 width=8) (actual time=0.003..0.003 rows=1 loops=12,760)

52. 25.520 25.520 ↑ 1.0 1 12,760

Index Scan using bankpaymenttransaction_mapping_idx on bankpaymenttransaction bpt_1 (cost=0.29..8.30 rows=1 width=8) (actual time=0.002..0.002 rows=1 loops=12,760)

  • Index Cond: (mapping_id = ps_eps.maturitypaymentmapping_id)
Planning time : 8.576 ms
Execution time : 293.060 ms