The Halloween Problem

The Halloween Problem refers to a phenomenon in databases in which an update operation causes a change in the physical location of a row, potentially allowing the row to be visited again later in the same update operation. Named after an October 31 discovery, it’s fixed by separating read and write phases using temporary tables or snapshots, ensuring each row is touched exactly once