Skip to content

feat(inspector): split the row limits by SObject on the Database tab - #949

Merged
lcottercertinia merged 2 commits into
certinia:mainfrom
lukecotter:feat-inspector-database-overview
Aug 21, 2026
Merged

feat(inspector): split the row limits by SObject on the Database tab#949
lcottercertinia merged 2 commits into
certinia:mainfrom
lukecotter:feat-inspector-database-overview

Conversation

@lukecotter

@lukecotter lukecotter commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

The Database tab said how long the queries took but never how close the log came to the row limits, or which SObject filled them. A user near 50,000 query rows had to read the grid row by row to find out.

This adds a Row budget section: one bar per row limit, split by the SObject that holds the rows, with the space left as the headroom and a mark where the limit falls. The Database whole-log view would then read five sections, more than the tab can carry, so the section ships written and tested but not registered. Re-adding it is one comment in detailSections.ts.

Changes

  • rowBudget.ts — the rows against each limit by SObject, the statement counts, and the worst single search; the governor peak answers where the log holds one, else the observed rows do
  • database-rows — the bars, the counts line, and a note when a certified package's own limits let a figure pass 100%
  • StackedTimeBar — takes a formatter, so a row-count bar reuses the time bar, and marks where a limit fell
  • databaseSections.ts — the call tree is last in every inspector view, so the panel reads the same wherever the selection came from
  • global.styles.ts — a shadow root no longer keeps the browser's paragraph margin
  • Docs and CHANGELOG follow the render order

Test plan

  • pnpm lint and pnpm test (1804 tests, 133 suites)
  • pnpm build, then the Database tab in the dev host, light and dark, side dock and bottom dock: the tab shows Namespace duration, Database duration and Call tree, and no Row budget

…panel

The Database whole-log view would read five sections, more than the tab can
carry, so the Row budget section ships written and tested but not registered.
Re-adding it is one comment in detailSections.ts.

Along the way: a stacked bar now measures any unit and marks where a limit
fell, so a row-count bar reuses the time bar; the call tree is the last
section in every inspector view; and a shadow root no longer keeps the
browser's paragraph margin.
Both branches edited the same Inspector bullets under Unreleased. Kept
this branch's Database clause order and upstream's Analysis self-time
spread and usage-chart seek.
@lcottercertinia
lcottercertinia merged commit 1699bc2 into certinia:main Aug 21, 2026
7 checks passed
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