Forum Moderators: open
A typical results page is only about 6kB.
I've noticed that when the search is conducted and the browser is redirected to the results page that my CPU usage goes up to 100% and my computer become unresponsive until it's finished doing its 'thang'. Then the CPU usage drops to normal levels and the computer starts responding again.
Is the CPU usage going to 100% because it's rendering the HTML? It's not like it's doing anything too advanced, it's only basic CSS and HTML tables...
Does anyone have any ideas as to what's going on? I've never seen this hapen before on any other website.
Many thanks,
BBB
Even if it 'is' a database issue, why is my CPU usage going to 100%? That's my burning question. If it's waiting on a SQL query, then the CPU usage should still be normal until it receives a response from the server. Remember, the MySQL server ISN'T on my machine.
I'd left an old Javascript in there which was about 4Mb in size, so every time the result page was accessed the browser was having to process this huge javascript file (hence the 100% CPU usage). Needless to say when I removed this script the search is now damn fast due to all the other optimization I'd been doing. So I guess something good has come out of it!
Thanks for all your suggestions, but this time it was my own stupidity causing the problem!