Question 1
For list-my-submissions, filter by learner and collection and order by created_at plus id. Propose an index and describe how to validate it.
Reveal model answer
A composite index on learner_id, collection, created_at and id is a useful hypothesis for this query shape. Check a representative query plan, row counts and latency distribution, and measure write overhead. The best exact index depends on the database, predicates, sort direction and workload.
