diff --git a/duckdb/benchmark.sh b/duckdb/benchmark.sh index 1b4433933..4cef357ec 100755 --- a/duckdb/benchmark.sh +++ b/duckdb/benchmark.sh @@ -12,7 +12,6 @@ wget --no-verbose --continue 'https://datasets.clickhouse.com/hits_compatible/hi gzip -d hits.csv.gz ./load.py -# 414 seconds # Run the queries diff --git a/duckdb/load.py b/duckdb/load.py index 2cc353621..dce3f963a 100755 --- a/duckdb/load.py +++ b/duckdb/load.py @@ -8,15 +8,15 @@ # enable the progress bar -con.execute('PRAGMA enable_progress_bar') +con.execute('PRAGMA enable_progress_bar;') con.execute('PRAGMA enable_print_progress_bar;') # disable preservation of insertion order -con.execute("SET preserve_insertion_order=false") +con.execute("SET preserve_insertion_order = false;") # perform the actual load print("Will load the data") start = timeit.default_timer() con.execute(open("create.sql").read()) -con.execute("COPY hits FROM 'hits.csv'") +con.execute("COPY hits FROM 'hits.csv';") end = timeit.default_timer() print(end - start)