made with Laravel

Fast Paginate for Laravel

Offset/limit Pagination Implementation

Visit Site


Offset/limit Pagination Implementation

"Fast Paginate offers a fast limit/offset pagination macro for Laravel. It can be used in place of the standard paginate methods.

This packages uses a SQL method similar to a "deferred join" to achieve this speedup. A deferred join is a technique that defers access to requested columns until after the offset and limit have been applied.

In our case we don't actually do a join, but rather a where in with a subquery. Using this technique we create a subquery that can be optimized with specific indexes for maximum speed and then use those results to fetch the full rows.

The benefits can vary based on your dataset, but this method allows the database to examine as little data as possible satisfy the user's intent."


Aaron Francis

Social Media Links

Laravel Stats Stats about your Laravel or Lumen Projects
icon-eye-dark Created with Sketch. 2.241
Laravel Shopify Package for Shopify App Development
icon-eye-dark Created with Sketch. 13.553
Sentry for Laravel Laravel Application Monitoring
❤️ Sponsored by Friends
We’re hosting on Digital Ocean! 💙 Try it today and get a free $100 credit.
Laravel Notify Flash Notifications
icon-eye-dark Created with Sketch. 8.854
Laravel Slack Slash Command Make a Laravel app respond to a Slash command from Slack
icon-eye-dark Created with Sketch. 653