3 ms·
Use cache priming and serve slightly stale content out of the cache when the most recent data isn't cached and then update the cache in the background. And che
by imsteve 19y ago
Use cache priming and serve slightly stale content out of the cache when the most recent data isn't cached and then update the cache in the background.
And check your indexes!
Plus, write a decorator around your database query function to log all queries and make a list of longest queries and longest average query times.