powerdns-admin/powerdnsadmin
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
..
lib Add new setting to verify outgoing SSL connections 2020-01-25 19:44:11 +01:00
models Perform domain sync within a single transaction 2020-02-02 15:15:20 +01:00
routes Merge remote-tracking branch 'eht16/add_ssl_verify_setting' 2020-01-29 22:33:24 +07:00
services Fix migration script and LGTM 2019-12-21 22:26:56 +07:00
static Add session timeout warning 2019-12-17 23:46:34 +07:00
templates Merge branch 'dashboard_search_placeholder' 2020-01-29 22:00:17 +07:00
__init__.py Introduce PDNS_ADMIN_LOG_LEVEL to change the log level 2020-01-27 00:20:32 +01:00
assets.py Add session timeout warning 2019-12-17 23:46:34 +07:00
decorators.py Add user email verification 2019-12-21 21:43:03 +07:00
default_config.py Update docker stuff and bug fixes 2019-12-04 11:50:46 +07:00
swagger-spec.yaml Refactoring the code 2019-12-02 10:32:03 +07:00