-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue 256 - Improve getting hosts performance #257
Conversation
There is no need to call "host_show" for each hostname, when "host_find" with the "all" parameter does the same thing. Signed-off-by: Mark Reynolds <mreynolds@redhat.com> fixes: freeipa#256
We might be able to apply the same approach for "users", but that needs more investigation... |
I think this will be faster, but only because the concept is not implemented well in user page. Combination of E.g. see:
The old UI's idea with XXX-find & XXX_show is:
User page in new UI has it implemented wrongly as it doesn't do the paging part correctly - instead of calling Alternatives I know to this "old UI" behavior are:
all*: it's actually not all because of default DS sizelimit (2000) for non directory manager queries. |
@pvoborni - I agree we need paging (or ideally VLV), but that will probably be a huge change. For the hosts page, with only 10 hosts, it takes 6-8 seconds to load - that's really slow for only 10 entries! I can't imagine how long it would take for just 100 hosts (or a 1000). With this change it only takes 2 seconds. Even if it's only a temporary solution it's better than what we have now. But I hear what you are saying, and we can close this PR. |
I agree that doing proper paging is a huge change and thus not on the table atm. To clarify the current actions: do I understand you correctly that you agree that the thing to do now are:
Btw on the timings. With 11 users in my test setup, I'm getting similar timings in old&new UI (expected as it is still 1 page). And that's about 1.1s - 1.4s total time for both requests - me being in Europe and the server in US (130 ms ping to the server). |
To clarify, I didn't actually test "users", but the "hosts" performance is just awful for so few entries. And this is all on my laptop (no network involved). It's at least a 75% improvement with this PR. Oh well, we'll just have to wait for paged search solution. |
FYI: Another optimization that the old UI is using, but the new UI is not, is adding option |
There is no need to call "host_show" for each hostname, when "host_find" with the "all" parameter does the same thing.
Signed-off-by: Mark Reynolds mreynolds@redhat.com
fixes: #256