3/2/2010
•
EN
'self' ForeignKeys always result in a JOIN
A technical note on how Django's self-referencing ForeignKey fields can cause unnecessary SQL JOINs and a workaround using the extra() method.