Skip to content

Commit

Permalink
Cleanup scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
szarnyasg committed Nov 26, 2024
1 parent c7452e7 commit d2a511c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion duckdb/benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions duckdb/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit d2a511c

Please sign in to comment.