python-libmaas icon indicating copy to clipboard operation
python-libmaas copied to clipboard

machines.list() is incredibly slow

Open Ehekatl opened this issue 6 years ago • 2 comments

On maas 2.5.2 It took 40 seconds to load on localhost (for about 100 nodes)

The performance is way too bad, I can imagine the total nodes could easily go beyond 10k in production. That basically means load forever.

The query should support something like filter by ip, and the backend service need some improvement as well

Ehekatl avatar Mar 25 '19 07:03 Ehekatl

This is actually an issue with the MAAS API, not with the library directly. It's an ongoing conversation on how to improve the performance of this API and it will be implemented in this library at that time.

blakerouse avatar Mar 25 '19 14:03 blakerouse

ya no doubt it's a backend issue

but the lib could support some query parameter to lower the cost?

Ehekatl avatar Mar 28 '19 11:03 Ehekatl

Already tracked in our bug tracker as https://bugs.launchpad.net/maas/+bug/1880966

r00ta avatar Jul 17 '23 07:07 r00ta