ParentFull threadtraviscj·Or just let the DB work for you with BEGIN; + (select/update/delete) + COMMIT; or ROLLBACK;View on HN