permify icon indicating copy to clipboard operation
permify copied to clipboard

Cursor Pagination for lookupEntity and lookupSubject APIs

Open tolgaozen opened this issue 2 years ago • 1 comments

Feature Description

This feature request is about adding cursor pagination to the existing lookupEntity and lookupSubject APIs. This feature will enable more efficient querying over large datasets and improve API response times.

Proposed Solution

By using cursor pagination, users can step through the dataset incrementally and only query the data they need. This feature would make our API more scalable and dev-friendly.

Technical Details

  • Cursor pagination can be implemented by using next_cursor and previous_cursor parameters in our API requests.
  • Each response should include a next_cursor value that can be used for the subsequent query.
  • Pagination operations should be optimized using appropriate indexes in our database queries.

Benefits

  • Improved performance and reduced memory usage.
  • Enhanced user experience with large datasets.
  • Increased scalability and ease of maintenance for the API.

tolgaozen avatar May 09 '24 12:05 tolgaozen

This issue is linked to our feedback platform. For feedback and updates, please visit this link.

featurebase-for-github avatar Jul 23 '24 12:07 featurebase-for-github