david12 Posted December 3, 2006 Share Posted December 3, 2006 ???We have build a program in php on an mysql database. It work’s fine but it is extremely slow. The reason for this is that on all the records in the database PHP is doing a calculation which is taking approx 1 sec per record. The database has more then 1 mio records so a long time to do a run over the complete database.We would like to streamline this by putting other pc’s in a network. The idea is to have several pc’s execute a part of the records.For example pc 1 is doing the calculations on record 1 until 100.000 and saves the result in the central mysql database. Pc 2 is doing the calculation from record 100.001 untill record 200.000. end so on.In this way if we put 10 pc’s in parallel our calculation could go about 10 times faster.?Is this possible and is PHP- mysql the right code?Thx for helpDavid Quote Link to comment https://forums.phpfreaks.com/topic/29324-execute-one-mysql-database-from-different-pc%E2%80%99s/ Share on other sites More sharing options...
bibby Posted January 21, 2007 Share Posted January 21, 2007 If it's a linux server, keep an eye on the load with the w command. Start the first and second, and see how the stress is before turning on any others. The trouble with so many is that they all crash together. Quote Link to comment https://forums.phpfreaks.com/topic/29324-execute-one-mysql-database-from-different-pc%E2%80%99s/#findComment-165514 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.