add --oltp-create-secondary option to optionally disable creation of secondary index
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user