Skip to content

Add endpoint for appRatings#331

Merged
nbenaglia merged 1 commit intoQortal:developfrom
nbenaglia:feature/320_endpoint_app_ratings
Mar 14, 2026
Merged

Add endpoint for appRatings#331
nbenaglia merged 1 commit intoQortal:developfrom
nbenaglia:feature/320_endpoint_app_ratings

Conversation

@nbenaglia
Copy link
Copy Markdown

Closes #329

Add Bulk App Ratings Endpoint

Summary

Adds a new API endpoint that dramatically improves performance when fetching app ratings in Qortal-Hub.

Problem

Currently, displaying app ratings requires making 2 separate API calls for each app (one for poll metadata, one for vote counts). For the community apps tab with hundreds of apps, this means 100-1000+ API calls, causing slow load times and unnecessary server load.

Solution

New endpoint GET /polls/apps/ratings returns all app rating data in a single request, reducing hundreds of API calls down to just one.

Performance Improvement:

  • Featured carousel: 12 calls → 1 call
  • Official apps tab: 34 calls → 1 call
  • Community apps (500+): 1000+ calls → 1 call

Changes

  • Added bulk ratings endpoint with filtering and pagination support
  • Created optimized database query to fetch polls with vote counts
  • Includes comprehensive test coverage
  • Fully backward compatible with existing API

Impact

Users will experience significantly faster app browsing, especially on initial page load. The server will handle fewer concurrent requests, improving overall system performance.

@nbenaglia nbenaglia merged commit 97f3cac into Qortal:develop Mar 14, 2026
@nbenaglia nbenaglia deleted the feature/320_endpoint_app_ratings branch March 14, 2026 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants