Skip to content

[ENHANCEMENT] Backend based pagination in Leaderboard #19

@A91y

Description

@A91y

Description:

Currently, all leaderboard data is sent to the frontend at once and paginated on the client side. This approach leads to heavy backend hits and can cause performance issues, especially as the amount of data grows.

Proposed Solution:

Implement backend-based pagination for the leaderboard data. This will allow the frontend to request only the necessary data for the current page, reducing the load on the server and improving performance.

Acceptance Criteria:

  1. Implement API endpoint for paginated leaderboard data.
  2. Modify the existing leaderboard component to fetch data from the new endpoint based on the current page.
  3. Ensure that the pagination controls work seamlessly with the backend data.
  4. Document the new API endpoint in the project's API documentation.

Benefits:

  • Reduced load on the server
  • Improved performance and faster load times for the leaderboard
  • Scalability for larger data

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions