I would like to process N number of transactions in batches.
When N people make a call to a transfer function, I would like to process all N transfers (and not before that last call is made).
Then, after all N transactions are processed, I would like to wait until another N number of calls is made (and so on).
I understand that I can make a map of addresses and their amounts to track the transfers, however, I do not want the gas price to be much higher because I am doing it in batches.
Can I do this (as explained above) without having a significant increase in the gas prices ?
Solidity version is 5.0 and above.