octavia/octavia/db
Gregory Thiemonge 4cfbf6669d 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)
(cherry picked from commit adb454b2e8)
(cherry picked from commit 37b15da4a1)
2021-06-08 16:47:47 +02:00
..
migration Merge "Jobboard based controller" 2020-04-09 00:10:44 +00:00
__init__.py Add license for empty __init__.py 2018-03-14 07:02:56 +09:00
api.py Make health checks resilient to DB outages 2018-09-11 12:21:22 -06:00
base_models.py Availability Zone admin API 2019-11-22 09:49:17 -08:00
healthcheck.py Add oslo middleware healthcheck to Octavia API 2020-03-19 11:24:16 -07:00
models.py Fix listener update with SNI certificates 2020-07-17 13:27:40 +02:00
prepare.py Fix overriding default listener timeout values in config file 2021-03-03 08:48:34 +01:00
repositories.py Optimize CountPoolChildrenForQuota task in amphorav2 2021-06-08 16:47:47 +02:00