-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Labels
Description
Currently, the BETY initialization entrypoint takes several minutes to run due to the large volume of data it has to import. That is useful for normal initialization, but it would be nice if there was a minimal version of BETY that could be loaded much more quickly to facilitate testing pull requests.
Looking at the tables included in the initialization, many of the largest are also the ones least necessary for quick tests (e.g. likelihoods
, dbfiles
, runs
).
I think this should be just a matter of creating a new entry in entrypoint.sh
that is identical to the current initialize
, but which points to a different, minimal BETY dump. E.g. Something like:
"fast-initialize" )
echo "Create new database, initialized from minimal data."
psql -h postgres -p 5432 -U postgres -c "CREATE ROLE bety WITH LOGIN CREATEDB NOSUPERUSER NOCREATEROLE PASSWORD 'bety'"
psql -h postgres -p 5432 -U postgres -c "CREATE DATABASE bety WITH OWNER bety"
./script/load.bety.sh -a "postgres" -d "bety" -p "-h postgres -p 5432" -o bety -c -u -g -m ${LOCAL_SERVER} -r 0 -w https://ebi-forecast.igb.illinois.edu/pecan/dump/FAST/bety.tar.gz
;;