InterviewDB Question

User Logs Pagination: Implement Efficient Keyset Pagination Over a User Activity Log

Question Details

Problem You have a user_logs table with millions of rows. Implement pagination using keyset (cursor) pagination, which is more efficient than OFFSET for large datasets. Schema: API: GET /users/:id/logs?cursor=<token>&limit=20 Write the SQL for the fi…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding Onsite