Opened 7 years ago

Closed 7 years ago

#29080 closed Cleanup/optimization (invalid)

SELECT @@SQL_AUTO_IS_NULL query for every page

Reported by: Nikos Katsos Owned by: nobody
Component: Database layer (models, ORM) Version: 2.0
Severity: Normal Keywords: mysql
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

Using django-debug-toolbar==1.9.1 package
I can see on every page that the first query is

SELECT @@SQL_AUTO_IS_NULL

mysql --version
mysql Ver 14.14 Distrib 5.7.21, for osx10.13 (x86_64) using EditLine wrapper

./manage.py version
2.0

Change History (1)

comment:1 by Tim Graham, 7 years ago

Resolution: invalid
Status: newclosed

It's expected behavior. That query is run each time a database connection is created. See b7fdd60d85ee94df444369be1b2c778cda44a0c2 (#24675).

Note: See TracTickets for help on using tickets.
Back to Top