By aggregating commits to the blockchain, and doing them in batches.
Then you don't understand how bitcoin works, so it's probably best you refrain from commenting on bitcoin architecture.
Lightning network hasn't been rolled out yet. It has nothing to do with our conversation.