Simon Willison’s Weblog

Subscribe

3rd April 2019 - Link Blog

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.

This is a link post by Simon Willison, posted on 3rd April 2019.

Monthly briefing

Sponsor me for $10/month and get a curated email digest of the month's most important LLM developments.

Pay me to send you less!

Sponsor & subscribe