6.0.0-beta1
9/24/25

[#2900] Listing a large number of shares takes a long time
Summary Listing a large number of shares takes a long time
Queue Horde Framework Packages
Queue Version HEAD
Type Bug
State Duplicate
Priority 1. Low
Owners Horde Developers (at)
Requester frank.richter (at) hrz (dot) tu-chemnitz (dot) de
Created 11/02/2005 (7266 days ago)
Due
Updated 05/18/2006 (7069 days ago)
Assigned 11/09/2005 (7259 days ago)
Resolved 05/18/2006 (7069 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
05/18/2006 03:56:01 PM Chuck Hagenbuch Comment #15
State ⇒ Duplicate
Reply to this comment
Marking this as a duplicate of bug 3126. Any objections?
12/01/2005 07:11:55 PM Chuck Hagenbuch Summary ⇒ Listing a large number of shares takes a long time
 
12/01/2005 07:11:34 PM Chuck Hagenbuch Comment #14
Queue ⇒ Horde Framework Packages
State ⇒
Version ⇒ HEAD
Reply to this comment
Seems like a more accurate reflection of what's going on here - any 
disagreement?
11/17/2005 10:20:24 PM Jan Schneider Comment #13 Reply to this comment
Nothing yet. We need to dive into the code to see where we can optimize it.
11/17/2005 09:00:59 PM Chuck Hagenbuch Comment #12 Reply to this comment
Jan, what did you see as the course of action here?
11/09/2005 08:59:58 AM Jan Schneider Assigned to Horde DevelopersHorde Developers
State ⇒ Assigned
 
11/09/2005 07:14:24 AM frank (dot) richter (at) hrz (dot) tu-chemnitz (dot) de Comment #11
New Attachment: log.txt Download
Reply to this comment
Ok,  unique lines, and the counts.


11/08/2005 03:08:01 PM Jan Schneider Comment #10 Reply to this comment
Are you interested in it?
Not completely, but maybe you could upload a few typical lines.
11/08/2005 01:17:42 PM frank (dot) richter (at) hrz (dot) tu-chemnitz (dot) de Comment #9 Reply to this comment
I've deleted these entries ... well it doesn't help. Whenever

$this->_calendars = $shares->listAllShares();

is called, it takes between 25 and 40 minutes to complete.

I've run the reminder script with debug_level E_ALL.

It produced a 5.5 MB log file (8683 lines of SQL queries). Are you 
interested in it?


11/07/2005 09:17:36 AM Jan Schneider Comment #8 Reply to this comment
Yes.
11/06/2005 09:16:34 PM frank (dot) richter (at) hrz (dot) tu-chemnitz (dot) de Comment #7 Reply to this comment
IMP related history data ..., is it

   delete from horde_datatree where group_uid='horde.history' and 
datatree_name like "imp.%"

(18954 entries)?
11/06/2005 10:46:16 AM Jan Schneider Comment #6
State ⇒ Not A Bug
Reply to this comment
This *is* a lot. Disable message history in IMP's configuration and 
delete all history entries for IMP, or wait for the new History 
library from Horde 3.1.
11/03/2005 12:02:44 PM frank (dot) richter (at) hrz (dot) tu-chemnitz (dot) de Comment #5 Reply to this comment
select count(*) from horde_datatree where group_uid='horde.history'

|    30085 |


11/03/2005 11:18:10 AM Jan Schneider Comment #4 Reply to this comment
Take a look at your horde_datatree table, does it have a lot of 
entries with a group_uid of 'horde.history'?
11/03/2005 09:47:08 AM frank (dot) richter (at) hrz (dot) tu-chemnitz (dot) de Comment #3 Reply to this comment
I detected two different situations:

1. It runs about 20 seconds:

  10:30:05 /var/www/html/horde/kronolith/lib/Scheduler/kronolith.php: 59

  10:30:05 /var/www/html/horde/kronolith/lib/Scheduler/kronolith.php: 77

  10:30:05 /var/www/html/horde/kronolith/lib/Scheduler/kronolith.php: 
85  before Kronolith::listAlarms

  10:30:24 /var/www/html/horde/kronolith/lib/Scheduler/kronolith.php: 
87 after Kronolith::listAlarms

  10:30:24 /var/www/html/horde/kronolith/scripts/reminders.php: 62



2. It goes through listAllShares(), and this takes quite long!

  09:55:21 /var/www/html/horde/kronolith/lib/Scheduler/kronolith.php: 59

  09:55:21 /var/www/html/horde/kronolith/lib/Scheduler/kronolith.php: 
68 before listAllShares

  10:27:36 /var/www/html/horde/kronolith/lib/Scheduler/kronolith.php: 
71 after listAllShares

  10:27:36 /var/www/html/horde/kronolith/lib/Scheduler/kronolith.php: 77

  10:27:36 /var/www/html/horde/kronolith/lib/Scheduler/kronolith.php: 
85 before Kronolith::listAlarms

  10:28:34 /var/www/html/horde/kronolith/lib/Scheduler/kronolith.php: 
87 after Kronolith::listAlarms



I have two "public" calendars, readable by anyone (but no alarms in it).



Hope that helps to help,

Frank
11/02/2005 10:58:09 PM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
Set logging to debug level, and add "echo"s and "var_dump"s in the 
code of lib/Scheduler/kronolith.php to see where it takes so long.
11/02/2005 01:20:22 PM frank (dot) richter (at) hrz (dot) tu-chemnitz (dot) de Comment #1
Priority ⇒ 1. Low
State ⇒ Unconfirmed
Queue ⇒ Kronolith
Summary ⇒ reminders.php runs very long
Type ⇒ Bug
Reply to this comment
Hi,

I've set up reminder functionality according to

   http://wiki.horde.org/KronolithReminders

Every 15 minutes cron starts as user root

  /usr/bin/php -q /var/www/html/horde/kronolith/scripts/reminders.php



The script runs VERY long, over 40 minutes (on our busy production machine).

Currently I don't use this script.

I assume there must be something wrong. Can I debug this script?



We have 11749 registered users (horde_prefs), but 130 users with 1238 events

in kronolith_events table only.



Thanks,

Frank


Saved Queries