From dc03e55729e0808783e2cd2f5e1577da95c0cc09 Mon Sep 17 00:00:00 2001 From: Edwin Njeru Date: Thu, 7 Sep 2023 12:24:59 +0300 Subject: [PATCH] Increase depreciation batch size to 300 --- .../erp/depreciation/DepreciationJobSequenceServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/github/erp/erp/depreciation/DepreciationJobSequenceServiceImpl.java b/src/main/java/io/github/erp/erp/depreciation/DepreciationJobSequenceServiceImpl.java index 5d0b56443e..15cc1e7a02 100644 --- a/src/main/java/io/github/erp/erp/depreciation/DepreciationJobSequenceServiceImpl.java +++ b/src/main/java/io/github/erp/erp/depreciation/DepreciationJobSequenceServiceImpl.java @@ -93,7 +93,7 @@ public void triggerDepreciation(DepreciationJobDTO depreciationJob) { // Process the assets in batches // TODO externalize this setting, you definitely would not do this for 10,000 items - int batchSize = 10; + int batchSize = 300; processAssetsInBatches(depreciationJob, assets, batchSize); // Mark the depreciation job as complete