Problem
On every request the SQLiteDatabases loadConnection() method is being called. This method does load the database, but also runs a simple migration of that database to ensure that the schema is still correct. However this is most likely overkill as the database only has to migrated once before the application runs.
Changes
- The migration system shall be moved out of the
loadConnection() method and be put into an external script that can be executed when the database changes or before starting the server.
- The docker container has to also migrate the database on load to ensure the correct version.
Problem
On every request the
SQLiteDatabasesloadConnection()method is being called. This method does load the database, but also runs a simple migration of that database to ensure that the schema is still correct. However this is most likely overkill as the database only has to migrated once before the application runs.Changes
loadConnection()method and be put into an external script that can be executed when the database changes or before starting the server.