Skip to content

perf/hardware summary perf - #2064

Open
alanpeixinho wants to merge 1 commit into
kernelci:mainfrom
profusion:perf/hardware-summary-perf
Open

perf/hardware summary perf#2064
alanpeixinho wants to merge 1 commit into
kernelci:mainfrom
profusion:perf/hardware-summary-perf

Conversation

@alanpeixinho

Copy link
Copy Markdown
Contributor

What

Faster hardware details /summary for the default 5-day window. Same response.
The tests-branch OR on platform identity is split into a UNION so each arm can use its index. The builds branch uses array_position instead of @> so Postgres does not rebuild the compatible GIN
bitmap per build. Tree heads are probed with a LATERAL join on builds.build_id. The unfiltered summary query is skipped when the filtered SQL already matches head commits. Frontend timestamps are coerced
to numbers so a URL rewrite does not refetch.

How to test

Confirm behavior is unchanged:

  1. Open a hardware details page (e.g. bcm2711-rpi-4-b, maestro, last 5 days) with no filters. Summary counts, trees, compatibles, and filter options match main.
  2. Apply status / duration and other filter. Counts follow the filter

* Split platform test predicates into a UNION so each arm uses its index
* Use array_position on the builds branch to avoid per-build GIN bitmaps
* Probe tree heads via LATERAL on builds.build_id
* Skip the unfiltered summary query when SQL already matches heads
* Coerce hardware details timestamps so URL rewrite does not refetch

Signed-off-by: Alan Peixinho <alan.peixinho@profusion.mobi>
@alanpeixinho
alanpeixinho force-pushed the perf/hardware-summary-perf branch from de73f5d to 9119e6e Compare August 24, 2026 22:38
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.

1 participant