-
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
base: main
Are you sure you want to change the base?
Changes from all commits
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/
.