beowulfdk
07-01-2006, 03:00 PM
Hi,
I run a website which has a somewhat large forum (not compared to WHT ofc). I have several HUGE topics with over 20,000 replies to each (the biggest one is at 46,000+ replies).
The forum script is custom made (by myself) using php and mysql and is it designed to do as few updates as possible (it does NOT for example keep track of which user is online, or how many times a topic is shown). However it is beginning to slow down now.
Especially in LARGE topics, as mentioned, is where I have some trouble. They are implemented as multipage topics, where the page loading time is slower the higher number page you are on.
The query simply gets all message records in the topic, joined to the user table and displays it. The specific page is then retrieved using LIMIT x,40 (where x is 40*pagenum). So basically I think the problem is with LIMIT becomming slower the higher the x value is.
My question is, is there any, more efficient way, of retrieving multipage topics?
I run a website which has a somewhat large forum (not compared to WHT ofc). I have several HUGE topics with over 20,000 replies to each (the biggest one is at 46,000+ replies).
The forum script is custom made (by myself) using php and mysql and is it designed to do as few updates as possible (it does NOT for example keep track of which user is online, or how many times a topic is shown). However it is beginning to slow down now.
Especially in LARGE topics, as mentioned, is where I have some trouble. They are implemented as multipage topics, where the page loading time is slower the higher number page you are on.
The query simply gets all message records in the topic, joined to the user table and displays it. The specific page is then retrieved using LIMIT x,40 (where x is 40*pagenum). So basically I think the problem is with LIMIT becomming slower the higher the x value is.
My question is, is there any, more efficient way, of retrieving multipage topics?
