-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated Oxla results. #292
Changes from 2 commits
5a8ba74
07a729e
c5edbea
019c17e
2f58178
d691a25
90c5265
43eb208
6323a60
6d69975
5a97025
7886a1b
135203e
b110464
338c98a
c7c9664
25ee299
2d21411
ccae387
67095f9
a731c5c
753d8a9
8e05016
f2fdfc3
78e6d84
b18985a
3a785b7
79380b0
d8a775b
de95063
2ca5966
e3a28f0
f17fe2a
cd60a13
38eb41d
96994da
3a7c2a7
fbfc2c7
d43b61f
e37b61d
7e0c539
7dce6c1
522795e
7028949
e2c6286
81cc867
9a22401
1fdf7c7
9df52e0
4a51c1b
cef130c
1401f3a
815c89d
4d15624
7c0a8ed
b31ef39
8455754
358b8a2
9da39ad
7324ad6
1f734ba
fbff6b3
bcf821e
548ad46
467b0a9
1d0020d
9beef7b
d806b1f
092bdc8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,25 +16,25 @@ wget --no-verbose --continue 'https://datasets.clickhouse.com/hits_compatible/hi | |
echo "Unpack dataset." | ||
gzip -d hits.csv.gz | ||
chmod 777 ~ hits.csv | ||
mkdir data | ||
mkdir ~/data | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you change this so that all artifacts are stored directly in Related to that, chmod-ing ~ with 777 seems undesirable. EDIT: Ah, I see ... /data is mapped into the Docker image. Could you nevertheless try to create There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In l. 4-7, we can instead simply install docker via the operating system repository: sudo apt install docker.io |
||
mv hits.csv ~/data | ||
|
||
# get and configure Oxla image | ||
echo "Install and run Oxla." | ||
|
||
sudo docker run --rm -p 5432:5432 -v ~/data:/data --name oxlacontainer public.ecr.aws/oxla/release:1.20.0-beta > /dev/null 2>&1 & | ||
sudo docker run --rm -p 5432:5432 -v ~/data:/data --name oxlacontainer public.ecr.aws/oxla/release:1.53.0-beta > /dev/null 2>&1 & | ||
sleep 30 # waiting for container start and db initialisation (leader election, etc.) | ||
|
||
# create table and ingest data | ||
export PGCLIENTENCODING=UTF8 | ||
|
||
psql -h localhost -t < create.sql | ||
PGPASSWORD=oxla psql -h localhost -U oxla -t < create.sql | ||
echo "Insert data." | ||
psql -h localhost -t -c '\timing' -c "COPY hits FROM '/data/hits.csv';" | ||
PGPASSWORD=oxla psql -h localhost -U oxla -t -c '\timing' -c "COPY hits FROM '/data/hits.csv';" | ||
|
||
# get ingested data size | ||
echo "data size after ingest:" | ||
psql -h localhost -t -c '\timing' -c "SELECT pg_total_relation_size('hits');" | ||
PGPASSWORD=oxla psql -h localhost -U oxla -t -c '\timing' -c "SELECT pg_total_relation_size('hits');" | ||
|
||
# wait for merges to finish | ||
sleep 60 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to update index.html manually, this is done by a GitHub bot automatically based on the files in folder
result/
.