Re: IsInRole Performance Issue
From: Joe Gilkey (jgilkey_at_napcosecurity.com)
Date: 04/27/05
- Next message: Matt: "Re: Security based on session, what's wrong?"
- Previous message: Gabriel Lozano-Morán: "Re: IsInRole Performance Issue"
- In reply to: Gabriel Lozano-Morán: "Re: IsInRole Performance Issue"
- Next in thread: toddca: "Re: IsInRole Performance Issue"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 27 Apr 2005 11:55:10 -0700
Gabriel Lozano-Moran wrote:
> Do you get performance problems when the number of roles a user is in
> is higher than the magic number 23 ?
>
> Gabriel Lozano-Moran
>
> "moverton" <moverton.1o60hp@mail.codecomments.com> wrote in message
> news:moverton.1o60hp@mail.codecomments.com...
> >
> > David, did you ever resolve this problem? We are seeing very
> > similar problems.
> > -mark
> >
> > David Nicholson - SP/A Shaw Cablesystems wrote:
> >> *Hi,
> >> We have a very large AD here and I am noticing that the
> >> WindowsPrinciple
> >> IsInRole function is taking upwards of 1 second to respond with
> just >> a single
> >> user. I am assuming that this function re-queries the AD everytime.
> >> When it
> >> reaches about 50 users each query is taking > 10 seconds. Is there
> >> anyway to
> >> cache the AD query and still use the IsInRole?
> >> Thanks :) *
> >
> >
> >
> > --
> > moverton
> > --------------------------------------------------------------------
> > ---- Posted via http://www.codecomments.com
> > --------------------------------------------------------------------
> > ----
> >
Try using the CacheRolesInCookie property on the Roles class (ASP.NET
2.0).
-- Joe Gilkey Principal Programmer / Analyst NAPCO Security Group / Continental Instruments
- Next message: Matt: "Re: Security based on session, what's wrong?"
- Previous message: Gabriel Lozano-Morán: "Re: IsInRole Performance Issue"
- In reply to: Gabriel Lozano-Morán: "Re: IsInRole Performance Issue"
- Next in thread: toddca: "Re: IsInRole Performance Issue"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]