#2086 list-tags glob is slow
Closed: Fixed 3 years ago by tkopecek. Opened 4 years ago 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

3 years ago

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).

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

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

3 years ago

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

3 years ago

Commit dd4f392 relates to this ticket

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #2348 Merged 3 years ago
  • #2320 Merged 3 years ago