Skip to content

Implement a high performance paginator #176

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

Merged
merged 3 commits into from
Oct 3, 2024
Merged

Implement a high performance paginator #176

merged 3 commits into from
Oct 3, 2024

Conversation

denydias
Copy link
Contributor

@denydias denydias commented Sep 23, 2024

When dealing with millions activity records, the default behavior to not paginate records or Laravel's paginator (enabled by LARAVEL_LOGGER_PAGINATION_ENABLED=true) may lead to huge performance penalties.

For that use case, this PR implements LARAVEL_LOGGER_CURSOR_PAGINATION_ENABLED=true to enable Laravel's Cursor Pagination feature. This heavily improves Laravel Logger page loading time.

When enabled, it's advisable to read Cursor vs. Offset Pagination section on Laravel's documentation to get acquainted with Cursor Pagination limitations.

@jeremykenedy
Copy link
Owner

Thank you!

@jeremykenedy jeremykenedy merged commit c4d3d77 into jeremykenedy:master Oct 3, 2024
2 of 3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants