#28146: PostGIS: Django 1.11 adds two extra queries: SELECT 
postgis_lib_version()
and SELECT version()
-------------------------------------+-------------------------------------
     Reporter:  George Tantiras      |                    Owner:  nobody
         Type:                       |                   Status:  new
  Cleanup/optimization               |
    Component:  GIS                  |                  Version:  1.11
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Simon Charette):

 * cc: Simon Charette (added)


Comment:

 I would be surprised that two queries taking 15ms total to perform cause
 an average 250ms increase in load time.

 There's no doubt that 1.11 introduced two new queries but I'm pretty sure
 something else is causing the slowdown here.

 Is the affected page displaying any kind of form widget by any chance?

 Could you try setting [https://docs.djangoproject.com/en/1.11/ref/settings
 /#conn-max-age CONN_MAX_AGE] to `None` and see if that helps?

--
Ticket URL: <https://code.djangoproject.com/ticket/28146#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.5d372aa350c2d73678e4f8cf11eecfab%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to