Optimize the Stocktake and increase the capacity. The process went from updating the php.ini to configuring the source codes by trimming the process. Upon the optimization. The process shows a great improvement however, we can't eliminate the maximum time execution. However, we can now process upto 5000-6500 rows.