Skip to content
Anthony Velez Tapia

Django

Performance and architecture in Django: database queries and applications with several customers.

  • Development › Python

    N+1 queries in Django: from 101 queries to 1

    How to find and fix N+1 queries in Django step by step: from 101 queries to 1 with debug-toolbar, select_related, prefetch_related and annotate.

  • Development › Python

    Multi-tenancy in Django: four strategies

    Four ways to isolate SaaS customers in Django: separate databases, hybrid, schema per tenant and tenant_id, with the trade-offs and when to use each one.