Recently I have devoted a lot of time to website optimization and now I would like to talk about it.
This article will explain the use of the
methods in QuerySet, as well as their differences. I will also try to explain why Django is considered slow, and why this is still not the case. Of course, Django is slower in many ways than the same Flask, but at the same time in most projects the problem is not in Django itself, but rather in the absence of optimizing database queries.
Therefore, let's optimize the
EVILEG website forum page
. And the Django Silk battery will help us with this, which serves to measure the number of queries to the database, as well as measure their duration.