Commit b9690972 authored by Dan McGee's avatar Dan McGee Committed by Lukas Fleischer
Browse files

Use a single transaction to write dummy data



This is immensely faster when using InnoDB since we don't need to sync
after each and every INSERT statement.
Signed-off-by: default avatarDan McGee <dan@archlinux.org>
Signed-off-by: default avatarLukas Fleischer <archlinux@cryptocrack.de>
parent fcaee288
......@@ -54,6 +54,7 @@ if len(sys.argv) != 2:
# Just let python throw the errors if any happen
#
out = open(sys.argv[1], "w")
out.write("BEGIN;\n")
# make sure the seed file exists
#
......@@ -313,6 +314,7 @@ for p in seen_pkgs.keys():
# close output file
#
out.write("COMMIT;\n")
out.write("\n")
out.close()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment