In MAAS, to ensure that a function is run
within its own database transaction, decorate it with
from maasserver.utils.orm import transactional @transactional def do_something_databasey(): ...
If a transaction is already in progress when
called, it will instead be called within a savepoint.
Now for the why.[Read More]