Bug 225217 - The portal needs to cache user roles
Summary: The portal needs to cache user roles
Status: CLOSED FIXED
Alias: None
Product: Community
Classification: Eclipse Foundation
Component: Project Management & Portal (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Portal Bugzilla Dummy Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: bugday
Depends on:
Blocks:
 
Reported: 2008-04-01 18:14 EDT by Karl Matthias CLA
Modified: 2009-11-12 19:20 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karl Matthias CLA 2008-04-01 18:14:39 EDT
Instead of querying the DB every time it needs to know about user roles, the portal should cache the roles once per request and store them in the context for retrieval anywhere in the code where roles information is needed.
Comment 1 Karl Matthias CLA 2008-04-01 18:15:42 EDT
I have added the ability to cache the user roles to the context.  I have also updated all of the functions which currently used the DB for roles information. What remains to be done is to convert all of the factories to used the context for cached information.
Comment 2 Karl Matthias CLA 2009-04-20 14:09:43 EDT
Gabe, let's do this in the next two weeks.  Should be a simple matter of editing all the factories.  Tedious but worth it.
Comment 3 Karl Matthias CLA 2009-11-05 17:55:20 EST
This is actually done.  In all the places where it makes sense to me to use the cached roles we have already done so since this capability was added 1.5 years ago.
Comment 4 Karl Matthias CLA 2009-11-12 19:20:44 EST
Closed or released for STAGING_326.  Please see final comments for actual resolution status.  This message does not imply that any action was taken which was not already described.