Zum Inhalt springen

Missing Transaction For Multi-Write (ARCH9065)

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

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.