[dev] alarms at session creatin

Jan Schneider jan at horde.org
Wed Apr 18 16:27:06 UTC 2007


Zitat von duck <duck at obala.net>:

> Maybe is another thing to consider about alarms. Now we are retrieve the
> alarm list periodically. But so we load the alarm list even in the fist
> page visit. But this is consuming if you take in mind the a guest
> generally has no alarms (other then sysadmins). So we have a lot of
> addition useless load on session creation , which is already consumig
> Even for users just to load the initial login screen. So I purpose to
> skip the alarm list loading for not logged in users. Oky. I may happen
> that an app has a general service unavailable alarm even for all users.
> But we can just solve this issue having a method like hasAlarms, like we
> have hasComments. It would be much faster to just check if the methods
> exists than load applications just to get an general empty list.

I don't see the issue. Guests will only receive global alarms, i.e.  
without user names. Since the alarm table is indexed by user name, the  
query should be really fast, especially if it returns an empty result  
set.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the dev mailing list