octavia/octavia/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
..
migration Add default value for enabled column in l7rule table 2021-01-28 13:31:21 -08: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 Add ALPN support for TLS-enabled pools 2021-01-28 14:42:48 +01:00
prepare.py Fix overriding default listener timeout values in config file 2021-03-01 08:57:30 +01:00
repositories.py Optimize CountPoolChildrenForQuota task in amphorav2 2021-05-17 09:37:15 +02:00