add --oltp-create-secondary option to optionally disable creation of secondary index

This commit is contained in:
Mark Callaghan
2016-10-21 19:26:01 -07:00
parent 5dd299c43b
commit 8977a0258c

View File

@ -87,8 +87,10 @@ pad CHAR(60) DEFAULT '' NOT NULL,
db_bulk_insert_done()
print("Creating secondary indexes on 'sbtest" .. i .. "'...")
db_query("CREATE INDEX k_" .. i .. " on sbtest" .. i .. "(k)")
if oltp_create_secondary then
print("Creating secondary indexes on 'sbtest" .. i .. "'...")
db_query("CREATE INDEX k_" .. i .. " on sbtest" .. i .. "(k)")
end
end
@ -168,4 +170,10 @@ function set_vars()
oltp_skip_trx = false
end
if (oltp_create_secondary == 'off') then
oltp_create_secondary = false
else
oltp_create_secondary = true
end
end