#12487: authenticated user alwayse fetch from database for each request
----------------------------+-----------------------------------------------
 Reporter:  anonymous       |       Owner:  nobody    
   Status:  new             |   Milestone:            
Component:  Authentication  |     Version:  1.1       
 Keywords:                  |       Stage:  Unreviewed
Has_patch:  0               |  
----------------------------+-----------------------------------------------
 even set the SESSION_ENGINE='django.contrib.sessions.backends.cache' or
 cache_db, and user has login, request.user is still always need to fetch
 from db for each request . and user groups, permissions will also need to
 fetch again when use. It takes too many cpu clocks.

 why not save the authenticated user in session. a little things should to
 do is update the user in session when user object or user permissions or
 groups has changed.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12487>
Django <http://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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.


Reply via email to