Skip to content

Refresh PostgreSQL statistics and visibility maps - #843

Open
pablogsal wants to merge 2 commits into
python:mainfrom
pablogsal:fix-buildbot-autovacuum
Open

pablogsal wants to merge 2 commits into
python:mainfrom
pablogsal:fix-buildbot-autovacuum

Conversation

@pablogsal

Copy link
Copy Markdown
Member

PostgreSQL waits for too many changes before its automatic cleanup runs on these large build metadata tables. The count below still needed 1,258,916 extra table lookups and took 2.07 seconds. Lower the automatic cleanup thresholds and provide a manual vacuum to refresh statistics and reduce those extra lookups.

Heap Fetches: 1258916
Execution Time: 2072.075 ms

@pablogsal

Copy link
Copy Markdown
Member Author

CC @zware

@zware zware left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is a bit out of my depth, but looks relatively safe and reversible. Maybe we should document the existing values in comments, though?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants