Contribute Media
A thank you to everyone who makes this possible: Read More

Django ORM Be Careful – Tim Hsu (PyCon Taiwan 2021)


Day 1, 10:40-11:25


Django ORM is amazing for handling a lot of database routines. However, if you don't know how it works under the hood, you may corrupt your data unconsciously. I will demonstrate some harmful ORM operations and fix them.


Django ORM helps developer finish their job by abstracting a lot of database operations. however, unawareness of the ACID characters of a database system will result in a buggy system.

On the other hand. due to Django translate a series of function calls to some SQL query. if you don't understand the syntax of a SQL query. you may get incorrect results.

To help Django developers, this talk will comprise these parts.

ACID introduction Underlying SQL produced by Django ORM Example of common mistakes

Slides not uploaded by the speaker. HackMD:

Speaker: Tim Hsu

Python Developer from iCHEF. Love to chat.


Improve this page