Closed chuan137 closed 6 months ago
test in na-us-3 shows that the improvement is very good
>>> exec(open("debug-manila.py").read())
>>> ss = shareserver(ctx)
Time taken: 0:00:03.971640
>>> ss[0].share_network_name
'neo-na-us-3-factoryus2-st-ase-a01'
The API takes long to finish, because share network is fetched for every share server. We make a single query to fetch all share networks before building the share server list.
This work is collaborative between @chuan137 and @Carthaca
Change-Id: Ia08a9ba8894a51dd20234cb0c7fdeadd5655ca7e