a tool for bulk importing bi5 files (tick data) into sql
python3make- postgresql (run
make dbto get a containerised DB) pg_config
- copy
.env.exampleto.env - create a pg database, and configure credentials in
.env - run
make init
make run
make lint
make test (and google the "Coverage Gutters" vscode plugin for a pretty ui)
pip install some_new_packagepip freeze > requirements.txt- commit
requirements.txtto source control
yoyo new ./db_migrations -m "your message"
- loop over files, place them in a queue (one instrument at a time)
- pick off queue, using a worker pool
- save files to DB
graph TB
file-reader-->queue
queue-->worker1[worker 1]
queue-->worker2[worker 2]
queue-->workerN[... worker N]
worker1-->db[(Database)]
worker2-->db
workerN-->db