Yo-Yo Ma
unread,Sep 30, 2012, 10:24:20 PM9/30/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django-d...@googlegroups.com
With ``contrib.sessions`` installed and ``SessionMiddleware`` in use, I noticed that when Django session cookie is set the ``django_session`` table is queried on every request, regardless of whether any session data is used during the request cycle. Making the ``session`` attribute of request a lazy object would represent an optimization in the following 2 cases, both of which are the same, in effect:
1) User logs in to perform login-required tasks, then visits pages that don't require login
2) User logs in to perform login-required tasks, logs out, then visits pages that don't require login
Would this sort of change be backward-incompatible?