Skip to content

WIP: Skip dashboard query totals - #841

Draft
pablogsal wants to merge 2 commits into
python:mainfrom
pablogsal:fix-dashboard-query-counts
Draft

pablogsal wants to merge 2 commits into
python:mainfrom
pablogsal:fix-dashboard-query-counts

Conversation

@pablogsal

@pablogsal pablogsal commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

The dashboard counts the full build history for each page, and the count below took 2.07 seconds. This WIP uses include_total=False from a local Buildbot patch that does not exist upstream yet but I am still playing with and I am opening this to shot it to the maintainers.

Index Only Scan Backward using builds_pkey on builds ... (actual rows=1356105 loops=1)
Heap Fetches: 1258916
Execution Time: 2072.075 ms

@pablogsal

Copy link
Copy Markdown
Member Author

CC @zware

N_BUILDS = 200
MAX_CHANGES = 50

SUPPORTS_INCLUDE_TOTAL = 'include_total' in inspect.signature(DataConnector.get).parameters

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.

include_total does not currently exist in the buildbot/buildbot repo; which version is it from?

@pablogsal
pablogsal marked this pull request as draft November 20, 2026 18:29
@pablogsal pablogsal changed the title Skip dashboard query totals when Buildbot supports it WIP: Skip dashboard query totals Nov 20, 2026
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