Jump to content

Recommended Posts

???
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 help


David

  • 1 month later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.