Description
When viewing a large hash or list in the Key Browser detail pane, all elements are loaded and rendered at once. For keys with thousands of elements this causes slow rendering and high memory usage in the browser.
The KEY_VALUE_SIZE_LIMIT_BYTES environment variable (default 2KB) already guards against rendering excessively large keys by showing a size warning instead of loading elements. However, when the limit is raised (e.g. to 10MB for testing), performance starts to degrade around that threshold as the browser struggles to render thousands of elements simultaneously.
Proposed Solution
Paginate elements in batches of 100. Show the first 100 elements on load, with a "Load more" button or infinite scroll to fetch the next page. This applies to:
- Hash fields (HSCAN)
- List elements (LRANGE)
- Set members (SSCAN)
- Sorted set members (ZSCAN/ZRANGE)
Description
When viewing a large hash or list in the Key Browser detail pane, all elements are loaded and rendered at once. For keys with thousands of elements this causes slow rendering and high memory usage in the browser.
The
KEY_VALUE_SIZE_LIMIT_BYTESenvironment variable (default 2KB) already guards against rendering excessively large keys by showing a size warning instead of loading elements. However, when the limit is raised (e.g. to 10MB for testing), performance starts to degrade around that threshold as the browser struggles to render thousands of elements simultaneously.Proposed Solution
Paginate elements in batches of 100. Show the first 100 elements on load, with a "Load more" button or infinite scroll to fetch the next page. This applies to: