I have been playing with this idea for a long time, but I have not seen any information about how people do it. I have a small website project where I need to upload and modify 1 object. This object is quite simple and should not exceed a few kilobytes. Instead of starting the database for this small amount of data, why not just use pickle and / or shelve to save that data and load it? I plan to use a micro-web framework such as Bottle or Hip Flask for a project.
Is there any reason not to use this method to load data? It only loads the pickle file when Apache starts up, so I donβt think the speed will be executed (faster than the db request).
Thanks for any input!
python flask pickle shelve
Shane reustle
source share