Server-backed infinite scroll with block cache
Loads rows in fixed-size blocks on demand as the viewport moves, caches a bounded number of blocks, and evicts the rest. Very large remote datasets can then be scrolled with constant memory usage.
Planned. This page shows the specification from issue #199. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A mock source of 5,000,000 rows with block size 100 and a 10-block cache. A cache inspector shows the loaded block indices.
Expected behavior
Dragging the scrollbar to the middle loads only the blocks that are visible. Evicted blocks disappear from the inspector. Placeholder rows show until their block loads.
Planned API surface
rowModel:'infinite'blockSizemaxBlocksInCachemaxConcurrentRequestsdataSource.getRowsapi.purgeCacheapi.refreshBlocksonBlockLoadedAcceptance criteria
- Loaded blocks never exceed maxBlocksInCache, and least-recently-viewed blocks are evicted first (pending)
- Concurrent requests never exceed maxConcurrentRequests (pending)
- Blocks that scroll out of view before their request is sent are not requested (pending)
- purgeCache reloads the visible blocks while keeping the scroll position (pending)