forked from 0xWheatyz/SPARC
Add cursor-based pagination to /analyze/batch and /jobs endpoints #1037
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The
/analyze/batchand/jobsendpoints return unbounded result sets. As the database grows, these endpoints will become slow and memory-intensive.What to do
cursorandlimitquery parameters.next_cursorin the response body (null if no more results).Acceptance criteria
GET /jobs?limit=20returns at most 20 results and anext_cursor.GET /jobs?cursor=<token>&limit=20returns the next page of results.Roadmap ref: ROADMAP.md — P3 / API pagination.
Triage (AI-Manager): Assigned to @AI-Engineer. P3 feature -- cursor-based pagination to /analyze/batch and /jobs.
Resolved. PR #59 (feature/cursor-pagination) added cursor-based pagination to the /jobs endpoint. Verified in current main.