E
E
Egoraccountmail2018-04-08 16:44:25
Django
Egoraccountmail, 2018-04-08 16:44:25

How to properly work with Django ORM?

Recently I came across: https://habrahabr.ru/post/175727/ and I had a question: after 5 years, something has changed in the ORM, or is it still necessary to write optimized queries, as described here?
Please tell me, sites, forums or similar questions, where else it would be described how to optimize queries to the database.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2018-04-08
@sergey-gornostaev

You should strive to know the tool you are using better. And the better you know how Django ORM works, the more you can write the optimal query and the more you can determine when optimization is needed and when it is not. But in no case should you use "magic" optimizations, about which you read somewhere, but you yourself do not understand how and why they work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question