A demonstration of how to optimize Django ORM by seeing how it makes SQL queries under the hood.
I use the open source AppMap extension for Visual Studio Code to record the code and SQL execution of an application test case, and then display that information as a graphical execution trace.
The graphical display of code and SQL shows how the ORM works behind the scenes.