Aller au contenu

Missing Transaction For Multi-Write (ARCH9065)

Ce contenu n’est pas encore disponible dans votre langue.

Key swift.orm.missing-transaction-for-multi-write · Severity warning · Category orm

Flags two or more context.save() / db.write calls in one function - the second failing leaves the first committed.

try context.save()
...
try context.save()
make all changes, then one try context.save()

Save once after all changes, or wrap them in one transaction.