Brian W Posted December 8, 2008 Share Posted December 8, 2008 We have a kick ass in house server running MySQL and suddenly just recently one of the sites running on it started having delays when running Update and/or Insert statements. SELECT statements don't seem to have any delay and are flying like they should. When you post date (as in click "Submit") the status bar gets like a quarter of the way loaded, then pauses for 2-15 seconds, and then finally finishes. I find this odd since I haven't had any problems before hand and like I said, the Select statements run just fine. Any ideas? also, can't seem to get --log-slow-queries[=file_name] to work. i've tried: --log-slow-queries[=file_name]; -log-slow-queries[=file_name]; --log-slow-queries[=]; --log-slow-queries; and a few other combinations and variations but can't figure out that command prompt thing. I'm a total noob. Thanks guys Quote Link to comment https://forums.phpfreaks.com/topic/136069-solved-slow-update-insert/ Share on other sites More sharing options...
Mchl Posted December 8, 2008 Share Posted December 8, 2008 Try these hints http://dev.mysql.com/doc/refman/5.1/en/insert-speed.html http://dev.mysql.com/doc/refman/5.1/en/update-speed.html Quote Link to comment https://forums.phpfreaks.com/topic/136069-solved-slow-update-insert/#findComment-709497 Share on other sites More sharing options...
Brian W Posted December 8, 2008 Author Share Posted December 8, 2008 never mind, after some testing I've narrowed the slowness down to the mail() function which happens to be on all the pages that INSERT and/or UPDATE. trouble shooting that problem now though. Thanks Mchl anyways, appreciate the speedy help. Quote Link to comment https://forums.phpfreaks.com/topic/136069-solved-slow-update-insert/#findComment-709591 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.