mirror of
https://github.com/django/django.git
synced 2025-08-31 15:57:45 +00:00
Refs #30897 -- Added support for ANALYZE option to Queryset.explain() on MariaDB and MySQL 8.0.18+.
This commit is contained in:
parent
742961332e
commit
55df1750be
5 changed files with 40 additions and 8 deletions
|
@ -2587,13 +2587,14 @@ Pass these flags as keyword arguments. For example, when using PostgreSQL::
|
|||
Execution time: 0.058 ms
|
||||
|
||||
On some databases, flags may cause the query to be executed which could have
|
||||
adverse effects on your database. For example, PostgreSQL's ``ANALYZE`` flag
|
||||
could result in changes to data if there are triggers or if a function is
|
||||
called, even for a ``SELECT`` query.
|
||||
adverse effects on your database. For example, the ``ANALYZE`` flag supported
|
||||
by MariaDB, MySQL 8.0.18+, and PostgreSQL could result in changes to data if
|
||||
there are triggers or if a function is called, even for a ``SELECT`` query.
|
||||
|
||||
.. versionchanged:: 3.1
|
||||
|
||||
Support for the ``'TREE'`` format on MySQL 8.0.16+ was added.
|
||||
Support for the ``'TREE'`` format on MySQL 8.0.16+ and ``analyze`` option
|
||||
on MariaDB and MySQL 8.0.18+ were added.
|
||||
|
||||
.. _field-lookups:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue