|
cronPerformance and a new moduleBy Markus Sandy at 06/02/2007 - 09:00
I have been manually cleaning out the sessions table for some time now. We get about 8000 records per hour and so it does not take long to reach several hundred thousand records. Things start to bog down then. The system becomes very slow, especially if we are displaying the "Who's online" block on the home page, which is something we like to do. Also, the query to delete old session records can take quite a while to perform (up to 18 minutes that I have seen). A SpinXpress user posted a video to the Internet Archive but it did not show up at Ourmedia. Turns out that the reason for this is that the person had never logged into Ourmedia before and the "ia" module quietly does nothing in that case. No error message, no nothing. So this got me looking over ia.module in general and hook_cron() in particular. Then I looked at all the hook_cron's in all our modules and found lots of issues. |
Recent comments
2 years 33 weeks ago
2 years 36 weeks ago
2 years 38 weeks ago
2 years 39 weeks ago
2 years 41 weeks ago
2 years 42 weeks ago
2 years 45 weeks ago
2 years 46 weeks ago