Active
Project:
Graphstat
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Dec 2007 at 22:45 UTC
Updated:
23 Apr 2008 at 16:31 UTC
I installed this module on http://openpackage.biz/ . As soon as I went to admin/logs/graphs the vm started swapping like crazy and my site was floored. I had to restart mysql and apache.
I'd love to see graphs of my site, but this module really needs to be less hungry.
Comments
Comment #1
batje commentedThe query that floored my server (with 160k pageviews) was
$stats = db_fetch_object(db_query('SELECT COUNT(DISTINCT(path)) AS count FROM {accesslog} WHERE timestamp > %d AND timestamp <= %d', $loop, $loop + 3600));
each of these loops takes 10 minutes.
In general a distinct on a Character column is not a real good idea. Maybe if the table would hold a column which holds a numeric Hash of the URL, and had an index, the query would be usable.
(btw, it *does* generate lovely graphs)