Skip to content

a104437ana/ABD

Repository files navigation

Tutorial

fazer no linux, Ansible e gcloud instalados

cd scripts

MUDAR LINHA 9 DO vm_com_imagem.yml (por o project id do vosso projeto)

ansible-playbook vm_com_imagem.yml

POR O VOSSO PROJECT ID NO COMANDO ABAIXO, depois de --project

gcloud compute ssh --zone "us-west1-b" "projeto-abd" --project "meiuni"
cd ..
cd projetoABD/
cd group-4
cd transactional
mvn package
java -jar target/transactional-1.0-SNAPSHOT.jar -d jdbc:postgresql://localhost:5432/projetoabd -U projetoabd -P 123456789 -W 15 -R 180 -c 16
psql -h localhost -U projetoabd -d projetoabd

Password: 123456789

DESTRUIR A MAQUINA NO FIM!!!

GitBench

Load Data

  • Download the dataset (https://storage.googleapis.com/abd_data/gitbench_data.zip) and extract it.

  • Install the requirements:

    • With pip:
      pip3 install -r db/requirements.txt
  • Create a PostgreSQL database to store the data.

  • Load PostgreSQL:

    # replace 'HOST', 'PORT', 'DBNAME', 'USER', and 'PASSWORD' with the
    # respective connection variables.
    python3 db/load.py --data data -H HOST -P PORT -d DBNAME -u USER -p PASSWORD
  • Load DuckDB:

    python3 db/load_duckdb.py --data data
    # database will be stored at 'git.db'

Transactional workload (Java 25)

  • Install:
cd transactional
mvn package
  • Run:
# replace the connection, warmup, runtime, and client variables with the respective values
java -jar target/transactional-1.0-SNAPSHOT.jar -d jdbc:postgresql://HOST:PORT/DBNAME -U USER -P PASSWORD -W WARMUP -R RUNTIME -c CLIENTS
# E.g.:
java -jar target/transactional-1.0-SNAPSHOT.jar -d jdbc:postgresql://localhost:5432/git -U postgres -P postgres -W 15 -R 180 -c 16

Analytical workloads

The analytical queries can be found in the analytical folder.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors