-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed performance issue in list_permitted_lpars/partitions()
Details: * In zhmcclient version 1.13.0, an optimization was added where list() and find_local() were now utilizing the name-to-URI cache when only the resource name was specified as a filter argument. The Console.list_permitted_lpars/partitions() methods used find_local() to look up the parent CPC of the returned LPARs/partitions and specified 'se-version' as an additional property. However, find_local() uses the additional properties only when the resource object was not found in the name-to-URI cache. Because of the optimization, the Cpc object was now found in the cache, and the 'se-version' property was therefore not added anymore. The performance degradation was fixed by (1) creating local resource objects for the parent CPCs Console.list_permitted_lpars/partitions() in order to have better control over the properties they have, and (2) by reducing the Cpc objects to one for each real CPC (before we created one Cpc object for each Lpar/Partition object. Signed-off-by: Andreas Maier <maiera@de.ibm.com>
- Loading branch information
1 parent
7bc0965
commit da07dd5
Showing
2 changed files
with
49 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters