Percona-Lab / sysbench-tpcc

Sysbench scripts to generate a tpcc-like workload for MySQL and PostgreSQL
Apache License 2.0
292 stars 104 forks source link

Fixes: compatibility, core, tpcc scenario #4

Closed alexey2k closed 6 years ago

alexey2k commented 6 years ago
tpcc scenario changes:
- fixed delivery transaction to handle NULL case properly
- modified stock_level transaction to support two type of queries

compatibility changes:
- modified prepare stage to keep tinyint for MySQL and smallint for other DBs
- fixed check stage to support STRAIGHT_JOIN hint for MySQL

core script changes:
- replaced os.sleep with ffi.C.usleep
- replaced pcall() with proper hook for error handling
- changed API calls from :query to :query_row
- various small cleanups and imporvements