ydb-platform / tpcc

TPC-C for YDB
Other
10 stars 3 forks source link

Typo and inconsistency with documentation #10

Closed OvOlzhas closed 1 year ago

OvOlzhas commented 1 year ago

https://github.com/ydb-platform/benchbase/blob/0706dd324940ee531d1bd337db2878b51aa19527/src/main/java/com/oltpbenchmark/benchmarks/tpcc/TPCCBenchmark.java#L93

This if seems incorrect, since if startWarehouseId and numwarehouses are equal to 300, then 3000 terminals will be added on the first iteration of this cycle instead of 10. It would be more correct with the condition w_id == numWarehouses + startWarehouseId - 1.


https://github.com/ydb-platform/benchbase/blob/main/src/main/java/com/oltpbenchmark/benchmarks/tpcc/TPCCBenchmark.java#L111

It seems that the TPC-C documentation does not imply the division of districts between terminals.

eivanov89 commented 1 year ago

Nice catch, thank you!