Making a 30,000-row list feel instant
At work, a list viewer froze at 6,000 rows. The textbook fix would have broken the product, so I changed where the work runs instead.
The problem
Users upload lists with thousands of rows. Past about 6,000 rows, the browser locked up: technically loading, completely unresponsive.
The first instinct was pagination, the standard answer to "too many rows." But this table validates every row, checks for duplicates across the whole dataset, supports inline edits and lets users jump to invalid rows. Pagination would have broken all of that.
The real cause
The problem was repeated work. Validation scanned the full dataset several times during rendering. Duplicate checks did full table passes instead of lookups. The browser did expensive calculations before it could show anything.
The fix
- Indexes for duplicates. Reusable indexes turned duplicate detection into lookups instead of scans.
- Cached validation. Results are cached per row and per cell, so the table renders precomputed state.
- A web worker. Full-table validation moved off the main thread, so the UI stays responsive while it runs.
- Deferred rendering. Non-critical rendering waits, so the main list appears first.
The result
Lists that crashed at 6,000 rows now handle 30,000 or more smoothly, with the same UI, the same validation rules and the same experience. The best performance fix is not always the textbook one; it depends on where the work happens, how often it runs and whether it blocks the user.