Same. I even have some scripts in the past that would use more memory for some operations that would first add extra swapfile, do stuff, then remove it after.
Thank you for this. I have been having some issues recently with one of my servers and my solution was to increase the size of the tmp mount but that's basically a Russian roulette.
Enabling swap during the update sounds like an elegant solution.
Agreed, a swap(file) on a NVME SSD can keep the kernel's OOM killer away while still yielding quite acceptable performance under many workloads.