Skip to content

Skip product grouping in the Stock list view - #292

Open
bliatun-code wants to merge 1 commit into
mainfrom
codex/group-stock-only-in-card-view
Open

bliatun-code wants to merge 1 commit into
mainfrom
codex/group-stock-only-in-card-view

Conversation

@bliatun-code

Copy link
Copy Markdown
Owner

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.

Library Spools Action Time in ms (before → after) Desktop bytes Client–Host bytes
Local 0 list 43.8 → 44.1 1,513 —
Local 10,000 list 146.5 → 144.7 9,599,884 —
Local 10,000 search 52.8 → 52.7 0 —
Local 10,000 clear 56.7 → 56.7 0 —
Local 10,000 cards 205.2 → 213.9 0 —
Paired 0 list 77.4 → 76.4 1,447 4,686
Paired 10,000 list 209.8 → 206.1 8,726,446 9,602,441
Paired 10,000 search 53.3 → 53.2 0 0
Paired 10,000 clear 56.2 → 56.4 0 0
Paired 10,000 cards 197.0 → 211.2 0 0

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.

This branch has not been deployed

No deployments
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