My site was recently yanked from my host (2nd one in a month) for monopolizing resources. My site has been up for about 3 years but my only competition folded about 8 weeks ago and we have had problems coping with the tremendous amount of new users porting over. It seems my db usage is running the server up to 50% resources at times with about 100 concurrent users accessing my site.
I moved almost all my sql statements to cron jobs that run at different times twice an hour and spit the results to a text file so my content pages are never polling the db directly with every page load.
Didn't help.
Tried adding a footer with mysql_close($server) statement written a few times to try and close open links.
Didn't help.
I have one last option I can think of (although anyone of you that has a better idea I would love to hear it please) but I don't know if it would work.
Here it is : I have one big database with 21 tables. BUT I could easily seperate my users into, say,12 seperate databases with 21 much smaller tables. Say 100 users per database. WOULD that ease the load on the server or would it have the same end result but just instead of 1db at 50% resources it would be 12dbs at 4.5% resources (50%ish resources again).
Thanks all, for any ideas or help.