Tuesday, August 7, 2018

Where can I place code to read a db table at startup to create an in memory cache?


I would like to read a table from the database at startup time to build an in memory cache for fast data retrieval. 

Where is the best place to insert this code to run in django?

thx
bk

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/054b176d-075d-4bc6-af1a-b2b841ea86f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment