MCPcopy
hub / github.com/django/django / explain

Method explain

django/db/models/query.py:1470–1475  ·  view source on GitHub ↗

Runs an EXPLAIN on the SQL query this QuerySet would perform, and returns the results.

(self, *, format=None, **options)

Source from the content-addressed store, hash-verified

1468 self._prefetch_done = True
1469
1470 def explain(self, *, format=None, **options):
1471 """
1472 Runs an EXPLAIN on the SQL query this QuerySet would perform, and
1473 returns the results.
1474 """
1475 return self.query.explain(using=self.db, format=format, **options)
1476
1477 async def aexplain(self, *, format=None, **options):
1478 return await sync_to_async(self.explain)(format=format, **options)

Callers 10

test_basicMethod · 0.45
test_unknown_optionsMethod · 0.45
test_unknown_formatMethod · 0.45
test_postgres_optionsMethod · 0.45
test_mysql_analyzeMethod · 0.45
test_messageMethod · 0.45

Calls

no outgoing calls

Tested by 10

test_basicMethod · 0.36
test_unknown_optionsMethod · 0.36
test_unknown_formatMethod · 0.36
test_postgres_optionsMethod · 0.36
test_mysql_analyzeMethod · 0.36
test_messageMethod · 0.36