mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #30897 -- Added support for ANALYZE option to Queryset.explain() on MariaDB and MySQL 8.0.18+.
This commit is contained in:
committed by
Mariusz Felisiak
parent
742961332e
commit
55df1750be
@@ -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:
|
||||
|
||||
|
||||
@@ -169,7 +169,10 @@ Models
|
||||
:class:`~django.db.models.DateTimeField`, and the new :lookup:`iso_week_day`
|
||||
lookup allows querying by an ISO-8601 day of week.
|
||||
|
||||
* :meth:`.QuerySet.explain` now supports ``TREE`` format on MySQL 8.0.16+.
|
||||
* :meth:`.QuerySet.explain` now supports:
|
||||
|
||||
* ``TREE`` format on MySQL 8.0.16+,
|
||||
* ``analyze`` option on MySQL 8.0.18+ and MariaDB.
|
||||
|
||||
Pagination
|
||||
~~~~~~~~~~
|
||||
|
||||
Reference in New Issue
Block a user