Simon Willison’s Weblog

Wednesday, 3rd April 2019

The problem with laziness: minimising performance issues caused by Django’s implicit database queries (via) The ability to accidentally execute further database queries by traversing objects from a Django template is a common source of unexpected performance regressions. django-zen-queries is a neat new library which provides a context manager for disabling database queries during a render (or elsewhere), forcing queries to be explicitly executed in view functions. # 3:49 pm

2019 » April

MTWTFSS
1234567
891011121314
15161718192021
22232425262728
2930