mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-08 22:50:26 +00:00
eabbcedf08
This increases data inconsistency and also performance of the whole update process: SqlAlchemy can use its own caching better with a single transaction as it does not need to mark already fetched objects as dirty and so re-fetch them again on later use. So after deleting a domain, we can still use the previously fetched domain objects for the update operations afterwards. Otherwise SqlAlchemy had to fetch each domain object again with single SELECT statements which leads to bad performance with many domains (>> 1000). The introduced "do_commit" variable controls whether the database changes are to be committed by the caller or in the called method itself. So we can use a single transaction for the Domain.update() method while still preserving the previous behavior for other callers. Closes #428. |
||
---|---|---|
.. | ||
__init__.py | ||
account_user.py | ||
account.py | ||
api_key.py | ||
base.py | ||
domain_setting.py | ||
domain_template_record.py | ||
domain_template.py | ||
domain_user.py | ||
domain.py | ||
history.py | ||
record_entry.py | ||
record.py | ||
role.py | ||
server.py | ||
setting.py | ||
user.py |