Merge pull request #59 from jeremycole/0.5

Create indexes after data load in parallel_prepare
This commit is contained in:
Alexey Kopytov
2016-08-24 00:33:03 +04:00
committed by GitHub

View File

@ -59,8 +59,6 @@ pad CHAR(60) DEFAULT '' NOT NULL,
db_query(query)
db_query("CREATE INDEX k_" .. i .. " on sbtest" .. i .. "(k)")
print("Inserting " .. oltp_table_size .. " records into 'sbtest" .. i .. "'")
if (oltp_auto_inc) then
@ -89,6 +87,8 @@ 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)")
end