Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement pagination for participant query #5

Closed
BassemHalim opened this issue Jul 23, 2024 · 0 comments
Closed

Implement pagination for participant query #5

BassemHalim opened this issue Jul 23, 2024 · 0 comments

Comments

@BassemHalim
Copy link

The current participant query implementation fetches all participants without pagination:

const results = await c.env.DB.prepare(`SELECT * FROM participants_d3 ${whereClause}`).all();

While the table is small enough now, this approach may lead to performance issues and excessive memory usage as the number of participants grows. We should implement pagination to ensure the application remains scalable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant