This looks great! For the 2x general improvement, how much of that is due to setting/modifying postgres settings and adding good indexes, versus improvements to the code itself?
From seeing the cloud alloydb I had imagined most of the improvements were due to the wal-shipping and cloud native aspects.