explain.depesz.com

PostgreSQL's explain analyze made readable

Result: kEn5

Settings
# exclusive inclusive rows x rows loops node
1. 12.684 1,479.087 ↑ 2.9 5,438 1

Gather (cost=6,054.06..446,284.69 rows=15,601 width=3,059) (actual time=1,420.008..1,479.087 rows=5,438 loops=1)

  • Workers Planned: 4
  • Workers Launched: 4
2. 1.850 1,460.965 ↑ 3.6 1,088 5 / 5

Hash Left Join (cost=5,054.06..316,303.42 rows=3,900 width=2,694) (actual time=1,414.027..1,460.965 rows=1,088 loops=5)

  • Hash Cond: (ps_eps.earlypaymentmapping_id = bpt.mapping_id)
3. 0.986 1,459.111 ↑ 3.6 1,088 5 / 5

Hash Left Join (cost=5,043.84..316,278.56 rows=3,900 width=2,694) (actual time=1,414.008..1,459.111 rows=1,088 loops=5)

  • Hash Cond: (si.paymentadvice_id = ipa.id)
4. 0.968 1,458.120 ↑ 3.6 1,088 5 / 5

Hash Left Join (cost=5,033.61..316,258.10 rows=3,900 width=1,650) (actual time=1,413.987..1,458.120 rows=1,088 loops=5)

  • Hash Cond: (ps_eps.earlypaymentadvice_id = eps_epa.id)
5. 1.052 1,457.148 ↑ 3.6 1,088 5 / 5

Hash Left Join (cost=5,011.69..316,225.94 rows=3,900 width=1,562) (actual time=1,413.969..1,457.148 rows=1,088 loops=5)

  • Hash Cond: (si.currency_id = c.id)
6. 2.910 1,456.082 ↑ 3.6 1,088 5 / 5

Nested Loop Left Join (cost=5,010.55..316,207.34 rows=3,900 width=1,054) (actual time=1,413.941..1,456.082 rows=1,088 loops=5)

7. 1.035 1,448.822 ↑ 3.6 1,088 5 / 5

Hash Left Join (cost=5,010.12..314,266.99 rows=3,900 width=1,054) (actual time=1,413.925..1,448.822 rows=1,088 loops=5)

  • Hash Cond: (si.supplier_id = s_cb.id)
8. 1.050 1,446.119 ↑ 3.6 1,088 5 / 5

Hash Left Join (cost=4,799.00..314,045.60 rows=3,900 width=1,044) (actual time=1,412.240..1,446.119 rows=1,088 loops=5)

  • Hash Cond: (od_db.buyer_id = od_c_cb.id)
9. 1.914 1,445.035 ↑ 3.6 1,088 5 / 5

Nested Loop (cost=4,790.69..313,983.67 rows=3,900 width=1,034) (actual time=1,412.187..1,445.035 rows=1,088 loops=5)

10. 1.799 1,437.683 ↑ 3.6 1,088 5 / 5

Nested Loop (cost=4,790.27..312,221.42 rows=3,900 width=1,050) (actual time=1,410.120..1,437.683 rows=1,088 loops=5)

11. 1.682 1,433.709 ↑ 3.6 1,088 5 / 5

Nested Loop (cost=4,789.85..310,066.33 rows=3,900 width=1,026) (actual time=1,410.103..1,433.709 rows=1,088 loops=5)

12. 5.870 1,429.852 ↑ 3.6 1,088 5 / 5

Hash Join (cost=4,789.43..308,354.04 rows=3,900 width=1,026) (actual time=1,410.080..1,429.852 rows=1,088 loops=5)

  • Hash Cond: (si.originatordivision_id = od_db.id)
13. 15.764 1,423.962 ↑ 5.2 10,570 5 / 5

Nested Loop (cost=4,788.24..308,166.14 rows=54,602 width=420) (actual time=1,336.620..1,423.962 rows=10,570 loops=5)

14. 648.024 1,376.241 ↑ 5.1 10,652 5 / 5

Parallel Hash Join (cost=4,787.81..273,148.64 rows=54,620 width=228) (actual time=1,336.583..1,376.241 rows=10,652 loops=5)

  • Hash Cond: (ps_eps.id = ps_ddeps.id)
15. 678.281 678.281 ↑ 1.2 1,083,659 5 / 5

Parallel Seq Scan on earlypaymentsettlement ps_eps (cost=0.00..264,805.63 rows=1,354,362 width=220) (actual time=0.006..678.281 rows=1,083,659 loops=5)

  • Filter: (creationdate >= '2019-01-01'::date)
  • Rows Removed by Filter: 189854
16. 31.101 49.936 ↑ 2.9 51,360 5 / 5

Parallel Hash (cost=2,899.58..2,899.58 rows=151,058 width=8) (actual time=49.935..49.936 rows=51,360 loops=5)

  • Buckets: 262144 Batches: 1 Memory Usage: 12192kB
17. 18.835 18.835 ↑ 2.9 51,360 5 / 5

Parallel Seq Scan on ddearlypaymentsettlement ps_ddeps (cost=0.00..2,899.58 rows=151,058 width=8) (actual time=0.006..18.835 rows=51,360 loops=5)

18. 31.957 31.957 ↑ 1.0 1 53,261 / 5

Index Scan using supplierinvoice_pkey on supplierinvoice si (cost=0.43..0.64 rows=1 width=208) (actual time=0.003..0.003 rows=1 loops=53,261)

  • Index Cond: (id = ps_eps.invoice_id)
  • Filter: (nettingbundle_id IS NULL)
  • Rows Removed by Filter: 0
19. 0.004 0.020 ↑ 1.0 1 5 / 5

Hash (cost=1.18..1.18 rows=1 width=622) (actual time=0.020..0.020 rows=1 loops=5)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
20. 0.016 0.016 ↑ 1.0 1 5 / 5

Seq Scan on divisionbase od_db (cost=0.00..1.18 rows=1 width=622) (actual time=0.015..0.016 rows=1 loops=5)

  • Filter: (buyer_id = 66895525)
  • Rows Removed by Filter: 13
21. 2.175 2.175 ↑ 1.0 1 5,438 / 5

Index Scan using ddsuppliercentricearlypaymentsettlement_pkey on ddsuppliercentricearlypaymentsettlement ddsceps (cost=0.42..0.44 rows=1 width=16) (actual time=0.002..0.002 rows=1 loops=5,438)

  • Index Cond: (id = ps_eps.id)
22. 2.175 2.175 ↑ 1.0 1 5,438 / 5

Index Scan using financingcontextbase_pkey on financingcontextbase ps_ddps_fc_fcb (cost=0.42..0.55 rows=1 width=24) (actual time=0.002..0.002 rows=1 loops=5,438)

  • Index Cond: (id = ddsceps.financingcontext_id)
23. 5.438 5.438 ↑ 1.0 1 5,438 / 5

Index Scan using ddsuppliercentricfinancingcontext_pkey on ddsuppliercentricfinancingcontext ddscfc (cost=0.42..0.45 rows=1 width=16) (actual time=0.005..0.005 rows=1 loops=5,438)

  • Index Cond: (id = ps_ddps_fc_fcb.id)
24. 0.004 0.034 ↑ 1.0 1 5 / 5

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

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
25. 0.030 0.030 ↑ 1.0 1 5 / 5

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

  • Index Cond: (id = 66895525)
26. 0.714 1.668 ↑ 1.0 1,650 5 / 5

Hash (cost=190.50..190.50 rows=1,650 width=26) (actual time=1.667..1.668 rows=1,650 loops=5)

  • Buckets: 2048 Batches: 1 Memory Usage: 119kB
27. 0.954 0.954 ↑ 1.0 1,650 5 / 5

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

28. 4.350 4.350 ↑ 1.0 1 5,438 / 5

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

  • Index Cond: (si.importbatch_id = id)
29. 0.005 0.014 ↑ 1.0 6 5 / 5

Hash (cost=1.06..1.06 rows=6 width=524) (actual time=0.014..0.014 rows=6 loops=5)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
30. 0.009 0.009 ↑ 1.0 6 5 / 5

Seq Scan on crxcurrency c (cost=0.00..1.06 rows=6 width=524) (actual time=0.007..0.009 rows=6 loops=5)

31. 0.000 0.004 ↓ 0.0 0 5 / 5

Hash (cost=15.30..15.30 rows=530 width=104) (actual time=0.004..0.004 rows=0 loops=5)

  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
32. 0.004 0.004 ↓ 0.0 0 5 / 5

Seq Scan on earlypaymentadvice eps_epa (cost=0.00..15.30 rows=530 width=104) (actual time=0.003..0.004 rows=0 loops=5)

33. 0.001 0.005 ↓ 0.0 0 5 / 5

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

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

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

35. 0.001 0.004 ↓ 0.0 0 5 / 5

Hash (cost=10.10..10.10 rows=10 width=16) (actual time=0.004..0.004 rows=0 loops=5)

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

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

37.          

SubPlan (for Gather)

38. 5.438 5.438 ↑ 1.0 1 5,438

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

39. 0.000 0.000 ↓ 0.0 0 5,438

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=5,438)

  • Index Cond: (mapping_id = ps_eps.maturitypaymentmapping_id)
Planning time : 8.433 ms
Execution time : 1,480.742 ms