@cached_as(..., lock=True) can be used to avoid dog-pile effect, but this still results in slow queries as clients wait to acquire lock while cache is being populated (but at least results in lower resource utilisation).
I'd like an option to immediately serve stale data (if available) from the cache instead of blocking while the cache is being populated. This was mentioned in #134 (comment) as the second point of avoiding dog-pile.
Can you give some advice on how to approach this implementation in django-cacheops?
@cached_as(..., lock=True)can be used to avoid dog-pile effect, but this still results in slow queries as clients wait to acquire lock while cache is being populated (but at least results in lower resource utilisation).I'd like an option to immediately serve stale data (if available) from the cache instead of blocking while the cache is being populated. This was mentioned in #134 (comment) as the second point of avoiding dog-pile.
Can you give some advice on how to approach this implementation in django-cacheops?