octavia/octavia/tests/functional/db
Gregory Thiemonge adb454b2e8 Optimize CountPoolChildrenForQuota task in amphorav2
The CountPoolChildrenForQuota task takes 3 or 4 seconds to execute in
amphorav2. When cascade deleting a load balancer with many pools (60),
it might take minutes.

We don't need to get and to convert all the fields from the object to
compute the number of children of a pool, we can optimize this task by
creating a new method in the PoolRepository class.

Story 2008873
Task 42414

Change-Id: Ie4d40509ae7e6faccecd1d0cc0bc4c7d93959261
(cherry picked from commit 7075d22c4c)
2021-05-17 09:37:15 +02:00
..
__init__.py Add license for empty __init__.py 2018-03-14 07:02:56 +09:00
base.py Fix new pylint errors 2020-08-21 15:00:27 +02:00
test_models.py Fix new pylint errors 2020-08-21 15:00:27 +02:00
test_repositories.py Optimize CountPoolChildrenForQuota task in amphorav2 2021-05-17 09:37:15 +02:00