Hi, We have a live website that runs fine. We now have wrote some scripts to report on the data. Due to the large amount of data running them brings the server to a standstill. We have now created 2 separate DSN's, one for "live" and one for "reports". We are running mySQL v4. Is there a way of prioritising one DSN over another? Or even prioritising the queries themselves? Or another method to ensure our live server doesn't get bogged down by a report query? Thanks
Hi - yeah was thinking that, but of course requires another box, replication, etc etc Was hoping there was another method... Cheers
Well, have you tried scheduling the report to run at off peak hours? Or do you get load on the server 24/7? If you have a period where your site gets low traffic, maybe you can schedule the task to run then.
Perhaps think about upgrading to mySQL 5. Look at the scheme of the DB, are indexes defines? Can you tune the sql? 9 times out of 10 performance can be gained by setting up the db properly and having someone look at the SQL.