explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 2o8X

Settings
# exclusive inclusive rows x rows loops node
1. 16.320 1,543.152 ↑ 2.9 5,438 1

Gather (cost=15,946.70..452,402.60 rows=15,601 width=3,059) (actual time=1,488.366..1,543.152 rows=5,438 loops=1)

  • Workers Planned: 4
  • Workers Launched: 4
2. 1.348 1,521.394 ↑ 3.6 1,088 5 / 5

Hash Left Join (cost=14,946.70..322,421.33 rows=3,900 width=2,702) (actual time=1,477.801..1,521.394 rows=1,088 loops=5)

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

Hash Left Join (cost=14,936.48..322,396.47 rows=3,900 width=2,702) (actual time=1,477.782..1,520.042 rows=1,088 loops=5)

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

Hash Left Join (cost=14,926.25..322,376.01 rows=3,900 width=1,658) (actual time=1,477.764..1,519.059 rows=1,088 loops=5)

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

Hash Left Join (cost=14,904.33..322,343.85 rows=3,900 width=1,570) (actual time=1,477.746..1,517.255 rows=1,088 loops=5)

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

Nested Loop Left Join (cost=14,903.19..322,325.24 rows=3,900 width=1,062) (actual time=1,477.717..1,516.181 rows=1,088 loops=5)

7. 1.039 1,508.540 ↑ 3.6 1,088 5 / 5

Hash Left Join (cost=14,902.76..320,384.89 rows=3,900 width=1,062) (actual time=1,477.699..1,508.540 rows=1,088 loops=5)

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

Hash Left Join (cost=14,691.63..320,163.51 rows=3,900 width=1,052) (actual time=1,475.968..1,505.786 rows=1,088 loops=5)

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

Parallel Hash Left Join (cost=14,683.33..320,101.58 rows=3,900 width=1,042) (actual time=1,475.904..1,504.698 rows=1,088 loops=5)

  • Hash Cond: (COALESCE(ddbceps.financingcontext_id, ddsceps.financingcontext_id) = ps_ddps_fc_fcb.id)
10. 0.973 1,405.600 ↑ 3.6 1,088 5 / 5

Hash Left Join (cost=4,841.47..310,249.48 rows=3,900 width=1,042) (actual time=1,378.123..1,405.600 rows=1,088 loops=5)

  • Hash Cond: (ps_ddeps.id = ddbceps.id)
11. 1.425 1,404.603 ↑ 3.6 1,088 5 / 5

Nested Loop Left Join (cost=4,789.85..310,187.62 rows=3,900 width=1,034) (actual time=1,378.080..1,404.603 rows=1,088 loops=5)

12. 5.887 1,398.828 ↑ 3.6 1,088 5 / 5

Hash Join (cost=4,789.43..308,354.04 rows=3,900 width=1,018) (actual time=1,378.057..1,398.828 rows=1,088 loops=5)

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

Nested Loop (cost=4,788.24..308,166.14 rows=54,602 width=412) (actual time=1,304.443..1,392.918 rows=10,570 loops=5)

14. 636.417 1,346.996 ↑ 5.1 10,652 5 / 5

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

  • Hash Cond: (ps_eps.id = ps_ddeps.id)
15. 657.944 657.944 ↑ 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.007..657.944 rows=1,083,659 loops=5)

  • Filter: (creationdate >= '2019-01-01'::date)
  • Rows Removed by Filter: 189,854
16. 30.717 52.635 ↑ 2.9 51,360 5 / 5

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

  • Buckets: 262,144 Batches: 1 Memory Usage: 12,192kB
17. 21.918 21.918 ↑ 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.009..21.918 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.006 0.023 ↑ 1.0 1 5 / 5

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

  • Buckets: 1,024 Batches: 1 Memory Usage: 9kB
20. 0.017 0.017 ↑ 1.0 1 5 / 5

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

  • Filter: (buyer_id = 66,895,525)
  • Rows Removed by Filter: 13
21. 4.350 4.350 ↑ 1.0 1 5,438 / 5

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

  • Index Cond: (id = ps_ddeps.id)
22. 0.001 0.024 ↓ 0.0 0 5 / 5

Hash (cost=28.50..28.50 rows=1,850 width=16) (actual time=0.024..0.024 rows=0 loops=5)

  • Buckets: 2,048 Batches: 1 Memory Usage: 16kB
23. 0.023 0.023 ↓ 0.0 0 5 / 5

Seq Scan on ddbuyercentricearlypaymentsettlement ddbceps (cost=0.00..28.50 rows=1,850 width=16) (actual time=0.023..0.023 rows=0 loops=5)

24. 56.596 96.947 ↑ 2.1 78,888 5 / 5

Parallel Hash (cost=7,787.49..7,787.49 rows=164,349 width=24) (actual time=96.947..96.947 rows=78,888 loops=5)

  • Buckets: 524,288 Batches: 1 Memory Usage: 26,688kB
25. 40.351 40.351 ↑ 2.1 78,888 5 / 5

Parallel Seq Scan on financingcontextbase ps_ddps_fc_fcb (cost=0.00..7,787.49 rows=164,349 width=24) (actual time=0.008..40.351 rows=78,888 loops=5)

26. 0.005 0.049 ↑ 1.0 1 5 / 5

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

  • Buckets: 1,024 Batches: 1 Memory Usage: 9kB
27. 0.044 0.044 ↑ 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.043..0.044 rows=1 loops=5)

  • Index Cond: (id = 66,895,525)
28. 0.719 1.715 ↑ 1.0 1,650 5 / 5

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

  • Buckets: 2,048 Batches: 1 Memory Usage: 119kB
29. 0.996 0.996 ↑ 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.008..0.996 rows=1,650 loops=5)

30. 6.526 6.526 ↑ 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.006..0.006 rows=1 loops=5,438)

  • Index Cond: (si.importbatch_id = id)
31. 0.007 0.015 ↑ 1.0 6 5 / 5

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

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

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

33. 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: 1,024 Batches: 1 Memory Usage: 8kB
34. 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)

35. 0.001 0.004 ↓ 0.0 0 5 / 5

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

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

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

37. 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: 1,024 Batches: 1 Memory Usage: 8kB
38. 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)

39.          

SubPlan (for Gather)

40. 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)

41. 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 : 5.021 ms
Execution time : 1,544.845 ms