Django
Django on_commit Ran Early? Check the Database Alias
A Django task can run early when its on_commit hook belongs to the wrong database. Trace the write, the callback and the worker’s read.
Django
A Django task can run early when its on_commit hook belongs to the wrong database. Trace the write, the callback and the worker’s read.
Code Review
The list endpoint issued one query for the rows and one per row for the relation, and the extra queries were invisible in the view because the serializer…