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

  1. Indexes for duplicates. Reusable indexes turned duplicate detection into lookups instead of scans.
  2. Cached validation. Results are cached per row and per cell, so the table renders precomputed state.
  3. A web worker. Full-table validation moved off the main thread, so the UI stays responsive while it runs.
  4. Deferred rendering. Non-critical rendering waits, so the main list appears first.
Before: the main thread validated every row and scanned for duplicates before rendering, so the page froze. After: the list renders first while a web worker validates in the background using indexes and cached results.BeforeMain threadvalidate every row, scan for duplicates, again and againrenderthe page is frozen for all of thisAfterMain threadrender listfree: scrolling, editing, typingWeb workervalidate with indexes and cached resultsresults6,000 rows froze before; 30,000 rows stay smooth after
The same work, moved to where it does not block the reader.

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.