Bug 1539803
| Summary: | dnf repoquery --requires --resolve is very slow | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | abenkovskii | ||||
| Component: | dnf | Assignee: | Marek Blaha <mblaha> | ||||
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 27 | CC: | abenkovskii, dmach, jmracek, mblaha, mhatina, packaging-team-maint, rpm-software-management, santileortiz, taisfmq, vmukhame | ||||
| Target Milestone: | --- | Keywords: | Triaged | ||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2018-06-28 08:22:09 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
abenkovskii
2018-01-29 16:08:03 UTC
This happened to me too with the same dnf version. Also, using the --installed flag seems to solve it.
Inside the RepoQueryCommand class, the problem seems to be here:
if self.opts.list == "installed":
query = self.filter_repo_arch(self.opts, self.base.sack.query())
else:
query = self.filter_repo_arch(self.opts, self.base.sack.query().available())
I don't know why using available() makes things so slow.
Possible duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1279538 BTW, the issue is marked as solved but not, might be a regression PR mentioned in comment 2 is not merged into upstream yet. If you want to test it, you can update dnf from my testing copr repository https://copr.fedorainfracloud.org/coprs/mblaha/dnf/ # dnf copr enable mblaha/dnf # dnf update dnf # time dnf repoquery -Cq --requires --resolve wine-core-0:3.4-1.fc27.x86_64 . . real 0m0.670s user 0m0.598s sys 0m0.057s Regarding the solved bug 1279538, this bug was filed against dnf version 1. But solution is very similar - not using glob when not necessary. I can confirm that your PR solves the issue. The issue is solved by dnf-3.0.1-1 that was released into rawhide. |