Typing in the edit sheet ran heavy DB work on every keystroke: a SQL LIKE search on the species field, and a full species-catalog load plus O(n^2) label matching on the name field. That made typing laggy. Debounce both lookups (250ms) so they only run once the grower pauses, and drop stale results with a per-field query counter so an earlier response can't flicker an outdated suggestion back in. |
||
|---|---|---|
| .. | ||
| app_seeds | ||