Private GIT

Skip to content
Snippets Groups Projects
Commit 01ffff19 authored by Gary Allan's avatar Gary Allan
Browse files

Performance: Update delegate_section_permissions() to use SQL transactions.

Delegating permissions will inspect each subnet within the section.
For each subnet (1000's+) the subnet permissions are updated, the users last
activity time updated and informational + change log records are generated.

SQL transactions ensure the associated table indexes are updated only once
at the final commit() instead of at every record update/insert.

This also prevents a partial application of requested changes.

    delegate_section_permissions(), section containing ~8000 subnets.
	105 seconds -> 7 seconds.
parent 1e613e5f
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment