3 ms·
Django queries are an interface to a real relational database. It's not its own thing. The tradeoff Django chose was lazy loading by default over automaticall
by Izkata 2y ago
Django queries are an interface to a real relational database. It's not its own thing.
The tradeoff Django chose was lazy loading by default over automatically pulling the entire database by following every foreign key.
One of the standard fixes is to tell it to do JOINs for specific foreign keys instead of lazy loading (select_related(), mentioned but not shown in the article).