710ffbb0c5
When retrieving multiple - or all - server groups, the code tries to find not deleted members for each server group in every cell individually. This is highly inefficient, which is especially noticable when the number of server groups rises. We change this to query all members of all server-groups we will reply with (i.e. from the already limited list) in advance and pass this set of existing uuids into the function formatting the server group. This is more efficient, because we only do one large query instead of up to 1000 times the number of cells. Change-Id: I3459ce7a8bec9a9e6f3a3b496a3e441078b86af0 Signed-off-by: Johannes Kulik <johannes.kulik@sap.com> Partial-Bug: #2122109
10 lines
320 B
YAML
10 lines
320 B
YAML
---
|
|
fixes:
|
|
- |
|
|
`Bug #2122109`_: Fix API performance when getting multiple server groups.
|
|
We now pre-fetch the not-deleted members of all requested server groups in
|
|
a single query per cell instead of executing a query per server group per
|
|
cell.
|
|
|
|
.. _Bug #2122109: https://launchpad.net/bugs/2122109
|