Load reduction
#4 (go back to main post)
To minimise the server loads and avoid crashing, the whole replace in the database will be made one table at a time that too with php sleep function and in batches of few hundered entries.
I am looking for the phpclasses code which keeps track of the processes running at the server and cpu usage and if I find that it can be used without troubling the end user, I will use that to keep a check on the processes. Also the checklist model of file transfer would be great as it will help in allowing breaks wherever wanted and also not keep running and cause the server to get slow.
Another very important aspect is error handling. As this process involves a lot of data manipulation and handling, it needs to have all ways of handling various unexpected situations. During the course of the project, I will aim at always having a fallback plan-B for everything that can go wrong.