permify
permify copied to clipboard
Cursor Pagination for lookupEntity and lookupSubject APIs
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_cursorandprevious_cursorparameters in our API requests. - Each response should include a
next_cursorvalue 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.
This issue is linked to our feedback platform. For feedback and updates, please visit this link.