I want to use transaction to update the map file via socket as there are multiple command need to be in the same transaction. But, Is prepare map only creates new version of the map and doesnt have the old entries in it?
yes indeed prepare creates a whole new environment (empty) where you can assign key=values independently from the current environment. And then call “commit” to replace the old one with the new one. It doesn’t fork it if that’s what you are asking, you have to copy old entries yourself before performing changes it that’s what you are willing to do