How to get Foreign Keys Horribly Wrong in Django
Language: Hebrew
The presentation was given on 2025.09.09 at PyCon Israel 2025 - Conference.
In this talk I present some lesser known gotchas and implicit behaviors of Foreign Keys in Django. We'll talk on what you need to pay attention to when defining FKs, how to change FKs w/o bringing your system to a halt and how to optimize for space,
Not many know this, but Foreign Keys in Django has a lot more then 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!