Bug 1078435
| Summary: | Postgresql SELECT statements take 25 seconds in 'Systems' tab | ||
|---|---|---|---|
| Product: | [Community] Spacewalk | Reporter: | Matt Wilkinson <matthewgwilkinson> |
| Component: | WebUI | Assignee: | Grant Gainey <ggainey> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Red Hat Satellite QA List <satqe-list> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 2.1 | CC: | mmraka |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-10-03 18:54:05 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1564160 | ||
|
Description
Matt Wilkinson
2014-03-19 17:09:32 UTC
I just noticed something interesting. It only takes 2 seconds to load the 'Errata' page and that page has 984 items (total) in it. The 'Systems' page only has 337 total items.... I've solved this by running the following command nightly: vacuumdb --analyze <dbname> Since this was opened we've moved from pgres 8.4 to 9.2 to 9.5. The postgres optimizer has gotten smarter along the way, as has the default vacuumdb behavior. As noted in #c2, this particular issue is a symptom of the database needing some housekeeping. There isn't any code-change to do here; closing as 'currentrelease'. |