Repository navigation
Skip product grouping in the Stock list view - #292
Open
bliatun-code wants to merge 1 commit into
Open
bliatun-code wants to merge 1 commit into
bliatun-code wants to merge 1 commit into
Conversation
This branch has not been deployed
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.
Stock list view now uses the filtered spool rows directly. Only card view builds product groups, totals their weights and sorts them. The existing full-inventory read, offline copy, list order and rendering limits are retained.
The workspace browser regression checks that list view produces no product groups, searches for three rolls across two products, verifies the grouped cards, switches back to the same ordered roll references and clears the search.
Measurements
Production Chromium UI and release Rust with synthetic SQLite libraries, locally and on an authenticated paired loopback Client. The 10,000-roll library has 1,000 products with ten rolls each. Starting on a loaded card view, the probe opens list view, searches for a supplier matching 5,000 rolls, clears the search, then returns to cards. For the empty library it measures opening the list. Times run from click or text input through the animation frame after the expected result count and rows appear and all pending desktop calls settle. Medians of seven measured runs after two warm-ups, alternating versions. Byte counts include serialized requests and responses excluding headers and assets.
At 10,000 rolls the list no longer constructs up to 1,000 unused groups. Search and clearing the search took essentially the same wall time. Returning to cards cost an additional 9 ms locally and 14 ms on the paired Client because that is now when grouping is performed. Transferred bytes were unchanged.