Skip to content

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