Bigod
30.08.2005, 21:15
Ich habe folgendes Problem. Nach einer Löschaktion einiger hundert alter Threads lahmt das Forum stellenweise sehr. Ganz besonders ist hiervon die Startseite (Forenübersicht) betroffen (5 - 30 Sekunden).
Ich habe hier mal die Querys überprüft und folgenden Lahmarsch :rolleyes: gefunden (wobei hier die Abfrage noch relativ schnell war):
SELECT
post.postid, post.title AS post_title,
thread.threadid, thread.title AS thread_title,
user.userid, user.username
FROM
vb3_post AS post,
vb3_thread AS thread,
vb3_user AS user
LEFT JOIN vb3_deletionlog AS dlog_t ON (dlog_t.primaryid = thread.threadid AND dlog_t.type = 'thread')
LEFT JOIN vb3_deletionlog AS dlog_p ON (dlog_p.primaryid = post.postid AND dlog_p.type = 'post')
WHERE
thread.threadid = post.threadid AND
thread.forumid IN(1,2,16,8,17,26,19,22,18,41,118,43,42,44,21,62,66,27,15,48,91,96,97,98,101,
102,103,104,105,106,107,109,108,110,111,112,113,114,115,116,100,117,29,
45,30,31,32,92,33,34,49,94,3,4,63,82,25,35,36,37,38,47,50,53,28,51,14,52,
54,55,56,39,40,58,57,59,60) AND
thread.visible = 1 AND
dlog_t.primaryid IS NULL AND
dlog_p.primaryid IS NULL AND
post.visible = 1 AND
thread.open <> 10 AND
user.userid = post.userid
ORDER BY post.postid DESC LIMIT 8
Time before: 0.762016057968
Memory Before: 2,173KB
Zeit nachher: 4.48299503326
Benoetigte Zeit: 3.7209789753
Speicher nachher: 2,173KB
Einige werden jetzt sagen, dass es eventuell an den Modifikationen liegt. Die waren vorher aber auch schon da und es lief alles sehr flott. Änderungen am Code wurden auch nicht vorgenommen, so dass ich davon ausgehe, dass die Löschaktion der Ursprung des Übels ist.
Das Forum findet ihr hier: http://www.infam.net/forum
Vielleicht hatte ja jemand schon mal ein ähnliches Problem und kann hier helfen.
Andy
Ich habe hier mal die Querys überprüft und folgenden Lahmarsch :rolleyes: gefunden (wobei hier die Abfrage noch relativ schnell war):
SELECT
post.postid, post.title AS post_title,
thread.threadid, thread.title AS thread_title,
user.userid, user.username
FROM
vb3_post AS post,
vb3_thread AS thread,
vb3_user AS user
LEFT JOIN vb3_deletionlog AS dlog_t ON (dlog_t.primaryid = thread.threadid AND dlog_t.type = 'thread')
LEFT JOIN vb3_deletionlog AS dlog_p ON (dlog_p.primaryid = post.postid AND dlog_p.type = 'post')
WHERE
thread.threadid = post.threadid AND
thread.forumid IN(1,2,16,8,17,26,19,22,18,41,118,43,42,44,21,62,66,27,15,48,91,96,97,98,101,
102,103,104,105,106,107,109,108,110,111,112,113,114,115,116,100,117,29,
45,30,31,32,92,33,34,49,94,3,4,63,82,25,35,36,37,38,47,50,53,28,51,14,52,
54,55,56,39,40,58,57,59,60) AND
thread.visible = 1 AND
dlog_t.primaryid IS NULL AND
dlog_p.primaryid IS NULL AND
post.visible = 1 AND
thread.open <> 10 AND
user.userid = post.userid
ORDER BY post.postid DESC LIMIT 8
Time before: 0.762016057968
Memory Before: 2,173KB
Zeit nachher: 4.48299503326
Benoetigte Zeit: 3.7209789753
Speicher nachher: 2,173KB
Einige werden jetzt sagen, dass es eventuell an den Modifikationen liegt. Die waren vorher aber auch schon da und es lief alles sehr flott. Änderungen am Code wurden auch nicht vorgenommen, so dass ich davon ausgehe, dass die Löschaktion der Ursprung des Übels ist.
Das Forum findet ihr hier: http://www.infam.net/forum
Vielleicht hatte ja jemand schon mal ein ähnliches Problem und kann hier helfen.
Andy