Easy way to run “explain” on query sets in django

前端 未结 3 565
闹比i
闹比i 2020-12-24 12:10

It seems like it should be easy to run \"explain\" directly off of a queryset in Django, but I don\'t see anything obvious for how to do it, and \"explain\" is a difficult t

3条回答
  •  一向
    一向 (楼主)
    2020-12-24 12:25

    QuerySet.explain(), available in Django 2.1.0 and above, is now the official way to explain queries.

提交回复
热议问题