a tool for bulk importing bi5 files (tick data) into sql
python3
make
- postgresql (run
make db
to get a containerised DB) pg_config
- copy
.env.example
to.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_package
pip freeze > requirements.txt
- commit
requirements.txt
to 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