Skip to content

Paginate hash and list elements in Key Browser detail view #454

Description

@ravjotbrar

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/frontendUI components, state, routingarea/serverBackend, WebSocket, actionsenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions