It should not have problems, this script is well written and is simple. I have been able to do a stress test of thousands of post directly uploaded to the database, and there were no problems on front side.
Try to increase the memory of the database.