diff --git a/java/cost-accounting-benchmark/src/dist/cb/large1.md b/java/cost-accounting-benchmark/src/dist/cb/large1.md index 4d5e91e..2560abb 100755 --- a/java/cost-accounting-benchmark/src/dist/cb/large1.md +++ b/java/cost-accounting-benchmark/src/dist/cb/large1.md @@ -8,8 +8,8 @@ | item_construction_master | 1,376,045 | 182,000 | R | | | item_manufacturing_master | 160,017 | 16,000 | R | | | cost_master | 3,000,000 | 339,000 | R | | -| stock_history | 3,000,000 | TODO | - | 在庫履歴の追加1回分 | +| stock_history | 3,000,000 | 451,000 | - | 在庫履歴の追加1回分 | | result_table | 1,758,662 | 140,000 | CD | 全件削除全件登録 | -| 合計 | 8,094,807 | 1,197,048 | | | +| 合計 | 11,094,807 | 1,648,048 | | | diff --git a/java/cost-accounting-benchmark/src/dist/cb/large10.md b/java/cost-accounting-benchmark/src/dist/cb/large10.md index 3eea05b..69ba024 100755 --- a/java/cost-accounting-benchmark/src/dist/cb/large10.md +++ b/java/cost-accounting-benchmark/src/dist/cb/large10.md @@ -8,8 +8,8 @@ | item_construction_master | 13,757,911 | 1,837,000 | R | | | item_manufacturing_master | 1,600,175 | 178,000 | R | | | cost_master | 30,000,000 | 3,407,000 | R | | -| stock_history | 30,000,000 | TODO | - | 在庫履歴の追加1回分 | +| stock_history | 30,000,000 | 4,654,000 | - | 在庫履歴の追加1回分 | | result_table | 17,595,413 | 4,102,000 | CD | 全件削除全件登録 | -| 合計 | 80,953,582 | 12,044,048 | | | +| 合計 | 110,953,582 | 16,698,048 | | | diff --git a/java/cost-accounting-benchmark/src/dist/cb/large50.md b/java/cost-accounting-benchmark/src/dist/cb/large50.md index ea1bffd..a55bd95 100755 --- a/java/cost-accounting-benchmark/src/dist/cb/large50.md +++ b/java/cost-accounting-benchmark/src/dist/cb/large50.md @@ -8,8 +8,8 @@ | item_construction_master | 68,790,600 | 9,112,000 | R | | | item_manufacturing_master | 8,000,432 | 901,000 | R | | | cost_master | 150,000,000 | 16,000,000 | R | | -| stock_history | 150,000,000 | TODO | - | 在庫履歴の追加1回分 | +| stock_history | 150,000,000 | 23,000,000 | - | 在庫履歴の追加1回分 | | result_table | 88,072,778 | 34,000,000 | CD | 全件削除全件登録 | -| 合計 | 404,863,893 | 72,013,048 | | | +| 合計 | 554,863,893 | 95,013,048 | | | diff --git a/java/cost-accounting-benchmark/src/dist/cb/medium.md b/java/cost-accounting-benchmark/src/dist/cb/medium.md index 9a6200c..b7a2f54 100755 --- a/java/cost-accounting-benchmark/src/dist/cb/medium.md +++ b/java/cost-accounting-benchmark/src/dist/cb/medium.md @@ -8,8 +8,8 @@ | item_construction_master | 1,058,510 | 140,000 | R | | | item_manufacturing_master | 95,957 | 10,008 | R | | | cost_master | 2,250,000 | 256,000 | R | | -| stock_history | 2,250,000 | TODO | - | 在庫履歴の追加1回分 | +| stock_history | 2,250,000 | 333,000 | - | 在庫履歴の追加1回分 | | result_table | 1,054,748 | 244,000 | CD | 全件削除全件登録 | -| 合計 | 5,794,298 | 835,056 | | | +| 合計 | 8,044,298 | 1,168,056 | | | diff --git a/java/cost-accounting-benchmark/src/dist/cb/small.md b/java/cost-accounting-benchmark/src/dist/cb/small.md index 022f6fb..43cf4cf 100755 --- a/java/cost-accounting-benchmark/src/dist/cb/small.md +++ b/java/cost-accounting-benchmark/src/dist/cb/small.md @@ -8,8 +8,8 @@ | item_construction_master | 683,117 | 91,000 | R | | | item_manufacturing_master | 32,116 | 3,320 | R | | | cost_master | 2,250,000 | 256,000 | R | | -| stock_history | 2,250,000 | TODO | - | 在庫履歴の追加1回分 | +| stock_history | 2,250,000 | 336,000 | - | 在庫履歴の追加1回分 | | result_table | 356,130 | 80,000 | CD | 全件削除全件登録 | -| 合計 | 4,356,446 | 577,368 | | | +| 合計 | 6,606,446 | 913,368 | | | diff --git a/java/cost-accounting-benchmark/src/dist/cb/tiny.md b/java/cost-accounting-benchmark/src/dist/cb/tiny.md index 66dedc6..77edda3 100755 --- a/java/cost-accounting-benchmark/src/dist/cb/tiny.md +++ b/java/cost-accounting-benchmark/src/dist/cb/tiny.md @@ -8,8 +8,8 @@ | item_construction_master | 785 | 128 | R | | | item_manufacturing_master | 3,030 | 320 | R | | | cost_master | 9,000 | 944 | R | | -| stock_history | 9,000 | TODO | - | 在庫履歴の追加1回分 | +| stock_history | 9,000 | 1384 | - | 在庫履歴の追加1回分 | | result_table | 34,704 | 7,384 | CD | 全件削除全件登録 | -| 合計 | 49,402 | 9,096 | | | +| 合計 | 58,402 | 10,480 | | | diff --git a/java/cost-accounting-benchmark/src/main/java/com/tsurugidb/benchmark/costaccounting/online/periodic/BenchPeriodicUpdateStockTask.java b/java/cost-accounting-benchmark/src/main/java/com/tsurugidb/benchmark/costaccounting/online/periodic/BenchPeriodicUpdateStockTask.java index e858c5d..0e4d362 100755 --- a/java/cost-accounting-benchmark/src/main/java/com/tsurugidb/benchmark/costaccounting/online/periodic/BenchPeriodicUpdateStockTask.java +++ b/java/cost-accounting-benchmark/src/main/java/com/tsurugidb/benchmark/costaccounting/online/periodic/BenchPeriodicUpdateStockTask.java @@ -22,6 +22,7 @@ import com.tsurugidb.benchmark.costaccounting.db.entity.CostMaster; import com.tsurugidb.benchmark.costaccounting.db.entity.StockHistory; import com.tsurugidb.benchmark.costaccounting.init.InitialData; +import com.tsurugidb.benchmark.costaccounting.online.OnlineConfig; import com.tsurugidb.benchmark.costaccounting.util.BenchConst; import com.tsurugidb.iceaxe.transaction.manager.TgTmSetting; import com.tsurugidb.iceaxe.transaction.option.TgTxOption; @@ -214,7 +215,10 @@ public void close() { public static void main(String... args) { try (var task = new BenchPeriodicUpdateStockTask(0); // CostBenchDbManager manager = createCostBenchDbManagerForTest()) { - task.setDao(null, manager); + var config = new OnlineConfig(InitialData.DEFAULT_BATCH_DATE); + config.setTxOption(TASK_NAME, "LTX"); + task.setDao(config, manager); + task.initializeSetting(); List factoryList = List.of(); if (0 < args.length) { @@ -227,7 +231,7 @@ public static void main(String... args) { } LOG.info("factoryList={}", StringUtil.toString(factoryList)); - task.initialize(factoryList, InitialData.DEFAULT_BATCH_DATE); + task.initialize(factoryList, config.getBatchDate()); LOG.info("start"); long start = System.currentTimeMillis();