I have a bunch of client point of sale (POS) systems that periodically send new sales data to one centralized database, which stores the data into one big database for repor
Using yield
might be a solution as well. See Generator syntax.
Instead of changing the PHP.ini
file for a bigger memory storage, sometimes implementing a yield
inside a loop might fix the issue. What yield does is instead of dumping all the data at once, it reads it one by one, saving a lot of memory usage.