Skip to content
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

Come up with migration strategy for schema changes #4

Closed
patrickhulce opened this issue Jun 26, 2019 · 0 comments
Closed

Come up with migration strategy for schema changes #4

patrickhulce opened this issue Jun 26, 2019 · 0 comments
Labels

Comments

@patrickhulce
Copy link
Collaborator

We need a way of dealing with changes to table schemas between version of LHCI, no promises made until initial published version but migration should be smooth after that

Ideas:

  • Use https://github.com/sequelize/umzug for table schema changes
  • Run migrations on every startup
  • Store a version tag for each precomputed stat record
  • On each query for computed stats, check for current version tag and compute on the fly

Questions:

  • How do we handle future alternate storage mechanisms like bigquery?
  • How do we handle potentially expensive API queries the first time after an update? Should we precompute the stat records?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant