I'm writing a Flask application for local use only. However, I want to be able to support a fast database (it's possible that the user needs to store a lot of data) that is also easy to deploy.
For example, MySQL would be a little difficult seeing as my app would need a MySQL server running locally (on the correct ports with the right permissions) for it to connect to. The same with Mongo. I've been exploring things like SQLite, but I don't know enough about it to make an informed decision.
Is there a current "best solution" for things like these. Should I bundle a database server in the distribution and have a script that starts both the database and the Flask app at once?
Aucun commentaire:
Enregistrer un commentaire