mirror of
https://github.com/dolthub/dolt.git
synced 2026-04-27 07:26:31 -05:00
cb74ef57da
* sysbench changes * add sysbench read test
25 lines
478 B
Lua
25 lines
478 B
Lua
require("dolt_common")
|
|
|
|
dolt_prepare = prepare
|
|
|
|
function prepare()
|
|
sysbench.opt.threads = 1
|
|
dolt_prepare()
|
|
end
|
|
|
|
function thread_init()
|
|
drv = sysbench.sql.driver()
|
|
con = drv:connect()
|
|
|
|
stmt = con:prepare('SELECT year_col, count(year_col), max(big_int_col), avg(small_int_col) FROM sbtest1 WHERE big_int_col > 0 GROUP BY set_col ORDER BY year_col')
|
|
end
|
|
|
|
function thread_done()
|
|
stmt:close()
|
|
con:disconnect()
|
|
end
|
|
|
|
function event()
|
|
stmt:execute()
|
|
end
|