feat(inspector): split the row limits by SObject on the Database tab - #949
Merged
lcottercertinia merged 2 commits intoAug 21, 2026
Merged
Conversation
…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.
lcottercertinia
previously approved these changes
Aug 21, 2026
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
approved these changes
Aug 21, 2026
lcottercertinia
approved these changes
Aug 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 dodatabase-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 felldatabaseSections.ts— the call tree is last in every inspector view, so the panel reads the same wherever the selection came fromglobal.styles.ts— a shadow root no longer keeps the browser's paragraph marginTest plan
pnpm lintandpnpm 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