python - Django load objects instances just once, make them available starting app -


I have an app (Django 1.6) that uses 4000 objects for naturally processing (NLP) Was previously generated.

All application processes (requests, tests, custom management commands, etc.) need to use all those items in some way.

All I have to do is load those objects, only once, at the startup moment (or so), and store them in memory to make them available for all app operations.

There are some clues in it, but I would love to hear your thoughts. What is the best way to position

clarification : 4000 objects only all Used for reading in the processes, they are not being modified in any way in the app. / p>

Thanks a lot.

Take advantage of all the data and also the Memcached cash backend. Therefore, any of your processes can be accessed fast, secure, and easily.

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -