Rather than fill the sticky with lots of stuff that most users probably couldn't care less about, I'm creating this thread.
GBM gave his idea to solve perb's current woes:
IF the problem is the searches, then it seems unlikely that creating static pages is a viable solution since there is no practical way to predict which keywords will be searched for in advance. Not without recording details of keywords used in the past. And then serving matching pages from the cache of static pages. Which might well take custom programming in this case. Whether there is enough repetition of keywords to justify building the static pages is not something we can know from our viewpoint. It might be the case that lots of time is wasted every 15 seconds for not much benefit. Which would just end up making the server busier.
Without knowing the specific details, it is hard to give more than generic advice, but I suspect either more resources are needed or better indexing. Or less functionality, but that doesn't seem to be a very popular approach.
GBM gave his idea to solve perb's current woes:
I don't claim to be an expert on web development/deployment, but this doesn't sound right. I don't disagree that the database may well be the source of the problem, but the solution is not that practical for this situation. At least not for Fred, maybe Jelsoft might write this code, but Fred is better off to look at things from a much higher level perspective.The database becomes the true bottleneck, not the web server, in this kind of setup. Solution is to cron a job that produces static pages from the database every 15 seconds or so. It also frees that piece of shit PHP interpreter from having to do too much (if anything) each time a user views a page. Then the number of simultaneous users the website can serve is not bound by the upper limit of the database (which might be 1000 users), but by the web server which could be tens of thousands of users (depending on web server).
Web site programming is among the most easy and brain dead activities a programmer could do. It's amazing how poorly most do it.
IF the problem is the searches, then it seems unlikely that creating static pages is a viable solution since there is no practical way to predict which keywords will be searched for in advance. Not without recording details of keywords used in the past. And then serving matching pages from the cache of static pages. Which might well take custom programming in this case. Whether there is enough repetition of keywords to justify building the static pages is not something we can know from our viewpoint. It might be the case that lots of time is wasted every 15 seconds for not much benefit. Which would just end up making the server busier.
Without knowing the specific details, it is hard to give more than generic advice, but I suspect either more resources are needed or better indexing. Or less functionality, but that doesn't seem to be a very popular approach.





