Re: Django Multiple Quiers to Auth User

2010-08-26 Thread stephen Enright
On further investigation this seems to be caused by the auth AuthenticationMiddleware. It makes a call to LazyUser for every request. Is anybody aware of a workaround for this or would this involve creating a new AuthenticationMiddleware implementation and is it possible to configure a differen

Django Multiple Quiers to Auth User

2010-08-25 Thread ste010
Hi Guys I switched on the debug toolbar in order to see what sql queires are being executed for each request. I Noticed that the auth_user table is queried once and the auth_message table is queried once for each request. This is two queries per request when the user is authenticated with the app