From d2a511cad8490834f5c351738f8b7a804820f4d0 Mon Sep 17 00:00:00 2001 From: Gabor Szarnyas Date: Tue, 26 Nov 2024 16:02:31 +0100 Subject: [PATCH] Cleanup scripts --- duckdb/benchmark.sh | 1 - duckdb/load.py | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) 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)