2025-04-24 –, Main hall
In this talk I present some lesser known gotchas and implicit behaviors of Foreign Keys in Django. We'll talk about what you need to pay attention to when defining FKs, how to change FKs without bringing your system to a halt and how to optimize for space, performance and heavy load.
Not many know this, but Foreign Keys in Django have a lot more than meets the eye! In this talk we'll build a small Django app together and tackle many issues related to Foreign Keys in the process. We'll talk about indexes, safe migrations, concurrency and performance. We'll also explore some of Django's implicit behaviors and discuss when and how we can do better!
Intermediate
Topics –DB
Software developer and a technical lead. Takes special interest in databases, web development, software design and performance tuning and writes about it in hakibenita.com.