Commit ae6eb97
committed
Do not lazy-load the extra specs for each flavor
When we access the extra specs for a flavor with the .get_keys() method
the attributes are lazy-loaded each time, meaning that if we have a
large number of servers we are hitting the API for each of those
servers. Since the client does not allow to load the extra specs, we do
it manually, thus hitting the API only when the flavors are loaded for
the first time. By doing so we have passed from 50s to 20s (extracting
700 records).1 parent 08e1471 commit ae6eb97
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
| 63 | + | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
118 | 121 | | |
119 | 122 | | |
120 | 123 | | |
| |||
0 commit comments