I have an app (Django 1.6) that uses around 4000 objects, for natural language processing (NLP), previously generated.
All application processes (requests, tests, custom management commands, etc) need to use all of those objects in some way.
What I'd like to do is to load all of those objects, just once, at the startup moment (or so), and store them in memory to make them available for all app processes.
This post has some clues but I'd love to hear your thoughts about what is the best approach to the situation.
Clarification: The 4000 objects are used just for reading in all processes, they are not being modified in any way into the app.
Thank you so much.
You may want to put all the data into the cache and also take advantage of Memcached cache backend. So the data could be fast, safely and easily accessed by any of your processes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With