#2086 list-tags glob is slow
Closed: Fixed by tkopecek. Opened by tkopecek.

CLI call list-tags is quite slow for current envs. It calls listTags and then filter tags on client-side. We could add such filter also on server-side.


This would be really useful for us in ABRT.

@ekulik - are you using CLI in abrt? Via API you should be able to do much more effective calls. Can you point me, where you are doing this? Maybe I can propose some better approach. (Fix is still planned for next-next release anyway)

Metadata Update from @tkopecek:
- Custom field Size adjusted to None

I’m not sure how you can make the code any more efficient if, as the issue implies, there is no filtering done on the server side. I want all tags matching a pattern, that’s it.

@ekulik You can use different API call. Here it could be session.search('f29*', 'tag', 'glob') see search method in e.g. https://koji.fedoraproject.org/koji/api

you'll get different just id + name in this case, so if you need more, you've to combine it with multicall for getTag, which probably would still be faster than getting all tags from hub (even in envs with hundreds of tags).

Nice, thanks!

That's useful to know that abrt uses Koji. Another use-case I did not expect!

PR #2320

Metadata Update from @jcupova:
- Issue tagged with: testing-ready

Metadata Update from @jcupova:
- Issue tagged with: testing-done

Commit 98601ff1 fixes this issue

Commit 03b55bf3 fixes this issue

Commit cc29bcc9 fixes this issue

Commit dd4f3920 relates to this ticket

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/koji/koji/issues/2086

Please continue any further discussion there.

Metadata
Related Pull Requests