Thursday, January 9, 2014

need django.cache advice

I’ve got a queryset that is ~ a 6 table join of a lot of data that generates about 1000 records with about 25 fields each

 

I’ve got ~100 terminals hitting this query every 1 minute looking for a subset of 25 records

 

~20 records change every minute

 

I was thinking about updating the data (queryset) once a minute on a cron job and saving that in the django.cache

 

Then each terminal would access the cache and and get the subset that applies to them.

 

Does that make sense?  Is there a better way?

 

Fred.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate