Skip to content

Paginate or stream the cluster visualization instead of loading the full hierarchy into memory #59

Description

@masa-57

Summary

The cluster visualization endpoint currently loads the entire hierarchy into memory and renders a single self-contained HTML document.

Evidence

  • fetches all L2 clusters, all L1 groups, and all embedded images.
  • then builds the complete in-memory hierarchy and renders all image cards into one HTML response.
  • serves that full payload directly.

Why this matters

As the dataset grows, memory use and response size grow with total image count, not with the portion a user is viewing.

Suggested direction

  • Add pagination, lazy loading, or chunked rendering for the visualization browser
  • Consider a lighter JSON-backed UI rather than a single giant HTML payload
  • Preserve representative-image and hierarchy browsing behavior

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestperformancePerformance improvementpriority:mediumUseful improvement with moderate urgency

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions