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
The correct way is to edit your php.ini
file.
Edit memory_limit
to your desire value.
As from your question, 128M
(which is the default limit) has been exceeded, so there is something seriously wrong with your code as it should not take that much.
If you know why it takes that much and you want to allow it set memory_limit = 512M
or higher and you should be good.