Solving Performance Problems in the Django ORM

Kyle Hanson
Oct 17, 2016 · 6 min read

What to look for

Tools

Example Schema

Unexpected Queries

Size and Existence

Getting only what you need

Handling many rows

Relationship Problems

When select_related doesn’t help

Easier doesn’t always mean better

How do we fix it?

Conclusion

Kyle Hanson

Written by

Programmer, Functional programming aficionado

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade