PowerDNS-Admin/powerdnsadmin/models
Enrico Tröger eabbcedf08 Perform domain sync within a single transaction
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.
2020-02-02 15:15:20 +01:00
..
__init__.py Update README and LGTM fixes 2019-12-08 18:23:36 +07:00
account.py Fix logging in models 2020-01-29 22:18:15 +07:00
account_user.py Refactoring the code 2019-12-02 10:32:03 +07:00
api_key.py Refactoring the code 2019-12-02 10:32:03 +07:00
base.py Refactoring the code 2019-12-02 10:32:03 +07:00
domain.py Perform domain sync within a single transaction 2020-02-02 15:15:20 +01:00
domain_setting.py Fix logging in models 2020-01-29 22:18:15 +07:00
domain_template.py Refactoring the code 2019-12-02 10:32:03 +07:00
domain_template_record.py Fix logging in models 2020-01-29 22:18:15 +07:00
domain_user.py Refactoring the code 2019-12-02 10:32:03 +07:00
history.py Refactoring the code 2019-12-02 10:32:03 +07:00
record.py Add new setting to verify outgoing SSL connections 2020-01-25 19:44:11 +01:00
record_entry.py Add record comment 2019-12-09 17:50:48 +07:00
role.py Refactoring the code 2019-12-02 10:32:03 +07:00
server.py Add new setting to verify outgoing SSL connections 2020-01-25 19:44:11 +01:00
setting.py Merge branch 'master' of github.com:ngoduykhanh/PowerDNS-Admin 2020-01-29 22:33:32 +07:00
user.py 🐛 Fix logger for LDAP group filter 2020-01-08 23:40:14 +01:00