--
Ticket URL: <https://code.djangoproject.com/ticket/30897>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/11955 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/30897#comment:1>
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/30897#comment:2>
* keywords: explain, analyze, mariadb, mysql => explain, analyze, mariadb,
mysql, postgresql
Old description:
> - MySQL 8.0.16+ has support for
> [https://dev.mysql.com/doc/refman/8.0/en/explain.html#explain-execution-
> plan EXPLAIN FORMAT=TREE].
> - MySQL 8.0.18+ has support for
> [https://dev.mysql.com/doc/refman/8.0/en/explain.html#explain-analyze
> EXPLAIN ANALYZE].
> - MariaDB 10.1.0+ has support for [https://mariadb.com/kb/en/library
> /analyze-statement/ ANALYZE]. (Was `EXPLAIN ANALYZE` before 10.1.0.)
New description:
- MySQL 8.0.16+ has support for
[https://dev.mysql.com/doc/refman/8.0/en/explain.html#explain-execution-
plan EXPLAIN FORMAT=TREE].
- MySQL 8.0.18+ has support for
[https://dev.mysql.com/doc/refman/8.0/en/explain.html#explain-analyze
EXPLAIN ANALYZE].
- MariaDB 10.1.0+ has support for [https://mariadb.com/kb/en/library
/analyze-statement/ ANALYZE]. (Was `EXPLAIN ANALYZE` before 10.1.0.)
- PostgreSQL 12+ has support for a new [https://www.postgresql.org/docs/12
/sql-explain.html#SQL-EXPLAIN SETTINGS] option to `EXPLAIN`.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/30897#comment:3>
* needs_better_patch: 0 => 1
* needs_tests: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/30897#comment:4>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"6e9189c0807a8b4818e77c2d83618a788b2ba906" 6e9189c]:
{{{
#!CommitTicketReference repository=""
revision="6e9189c0807a8b4818e77c2d83618a788b2ba906"
Refs #30897 -- Added test for SETTINGS option to Queryset.explain() on
PostgreSQL 12+.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30897#comment:5>
* needs_better_patch: 1 => 0
* needs_tests: 1 => 0
Comment:
Patch improved, tests added.
--
Ticket URL: <https://code.djangoproject.com/ticket/30897#comment:6>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/30897#comment:7>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"55df1750be3c88db89444335f77dca10681dcbe3" 55df1750]:
{{{
#!CommitTicketReference repository=""
revision="55df1750be3c88db89444335f77dca10681dcbe3"
Refs #30897 -- Added support for ANALYZE option to Queryset.explain() on
MariaDB and MySQL 8.0.18+.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30897#comment:9>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"cabf1fe37e46b00c14ed025a176628e748837658" cabf1fe]:
{{{
#!CommitTicketReference repository=""
revision="cabf1fe37e46b00c14ed025a176628e748837658"
Refs #30897 -- Made cosmetic edits to QuerySet.explain() documentation.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30897#comment:10>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"742961332e1e2221e6fb9506c7254164e0c2cb5a" 74296133]:
{{{
#!CommitTicketReference repository=""
revision="742961332e1e2221e6fb9506c7254164e0c2cb5a"
Refs #30897 -- Added support for TREE format to Queryset.explain() on
MySQL 8.0.16+.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30897#comment:8>
* status: assigned => closed
* resolution: => fixed
--
Ticket URL: <https://code.djangoproject.com/ticket/30897#comment:11>
Old description:
> - MySQL 8.0.16+ has support for
> [https://dev.mysql.com/doc/refman/8.0/en/explain.html#explain-execution-
> plan EXPLAIN FORMAT=TREE].
> - MySQL 8.0.18+ has support for
> [https://dev.mysql.com/doc/refman/8.0/en/explain.html#explain-analyze
> EXPLAIN ANALYZE].
> - MariaDB 10.1.0+ has support for [https://mariadb.com/kb/en/library
> /analyze-statement/ ANALYZE]. (Was `EXPLAIN ANALYZE` before 10.1.0.)
> - PostgreSQL 12+ has support for a new
> [https://www.postgresql.org/docs/12/sql-explain.html#SQL-EXPLAIN
> SETTINGS] option to `EXPLAIN`.
New description:
- MySQL 8.0.16+ has support for
[https://dev.mysql.com/doc/refman/8.0/en/explain.html#explain-execution-
plan EXPLAIN FORMAT=TREE].
- MySQL 8.0.18+ has support for
[https://dev.mysql.com/doc/refman/8.0/en/explain.html#explain-analyze
EXPLAIN ANALYZE].
- MariaDB 10.1.0+ has support for [https://mariadb.com/kb/en/library
/analyze-statement/ ANALYZE]. (Was `EXPLAIN ANALYZE` before 10.1.0.)
- PostgreSQL 12+ has support for a new [https://www.postgresql.org/docs/12
/sql-explain.html#SQL-EXPLAIN SETTINGS] option to `EXPLAIN`.
Updated 2020-08-20:
- MySQL 8.0.21+ has support for
[https://dev.mysql.com/doc/refman/8.0/en/explain.html#explain-analyze
EXPLAIN ANALYZE FORMAT=TREE].
- PostgreSQL 13+ has support for a new [https://www.postgresql.org/docs/13
/sql-explain.html#SQL-EXPLAIN WAL] option to `EXPLAIN`.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/30897#comment:12>
Comment (by Nick Pope):
Another [https://github.com/django/django/pull/13333 PR] for some
additional minor updates.
--
Ticket URL: <https://code.djangoproject.com/ticket/30897#comment:13>
Old description:
> - MySQL 8.0.16+ has support for
> [https://dev.mysql.com/doc/refman/8.0/en/explain.html#explain-execution-
> plan EXPLAIN FORMAT=TREE].
> - MySQL 8.0.18+ has support for
> [https://dev.mysql.com/doc/refman/8.0/en/explain.html#explain-analyze
> EXPLAIN ANALYZE].
> - MariaDB 10.1.0+ has support for [https://mariadb.com/kb/en/library
> /analyze-statement/ ANALYZE]. (Was `EXPLAIN ANALYZE` before 10.1.0.)
> - PostgreSQL 12+ has support for a new
> [https://www.postgresql.org/docs/12/sql-explain.html#SQL-EXPLAIN
> SETTINGS] option to `EXPLAIN`.
>
> Updated 2020-08-20:
>
> - MySQL 8.0.21+ has support for
> [https://dev.mysql.com/doc/refman/8.0/en/explain.html#explain-analyze
> EXPLAIN ANALYZE FORMAT=TREE].
> - PostgreSQL 13+ has support for a new
> [https://www.postgresql.org/docs/13/sql-explain.html#SQL-EXPLAIN WAL]
> option to `EXPLAIN`.
New description:
- MySQL 8.0.16+ has support for
[https://dev.mysql.com/doc/refman/8.0/en/explain.html#explain-execution-
plan EXPLAIN FORMAT=TREE].
- MySQL 8.0.18+ has support for
[https://dev.mysql.com/doc/refman/8.0/en/explain.html#explain-analyze
EXPLAIN ANALYZE].
- MariaDB 10.1.0+ has support for [https://mariadb.com/kb/en/library
/analyze-statement/ ANALYZE]. (Was `EXPLAIN ANALYZE` before 10.1.0.)
- PostgreSQL 12+ has support for a new [https://www.postgresql.org/docs/12
/sql-explain.html#SQL-EXPLAIN SETTINGS] option to `EXPLAIN`.
**Updated 2020-08-24:**
- MySQL 8.0.21+ has support for
[https://dev.mysql.com/doc/refman/8.0/en/explain.html#explain-analyze
EXPLAIN ANALYZE FORMAT=TREE].
- **Note:** We are not removing restriction on use of `ANALYZE` with
`FORMAT` until more than one format is supported with this combination of
options. (See
[https://github.com/django/django/pull/13333#pullrequestreview-473197627
review].)
- PostgreSQL 13+ has support for a new [https://www.postgresql.org/docs/13
/sql-explain.html#SQL-EXPLAIN WAL] option to `EXPLAIN`. ''(Note: Requires
`ANALYZE` option.)''
--
--
Ticket URL: <https://code.djangoproject.com/ticket/30897#comment:14>
Comment (by GitHub <noreply@…>):
In [changeset:"b3124215117541a86b0740314ef991e1d521da69" b3124215]:
{{{
#!CommitTicketReference repository=""
revision="b3124215117541a86b0740314ef991e1d521da69"
Refs #30897 -- Added test for WAL option to Queryset.explain() on
PostgreSQL 13+.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30897#comment:15>