fast-paginate
table-builder
Our great sponsors
fast-paginate | table-builder | |
---|---|---|
4 | 1 | |
1,149 | 4 | |
3.1% | - | |
0.0 | 0.0 | |
17 days ago | about 2 years ago | |
PHP | PHP | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
fast-paginate
-
We switched to cursor-based pagination
There are ways to mitigate the (although not eliminate) the slowing down of offset/limit pagination in later pages. The technique is called a "deferred join" and it is most effective in MySQL. The basic idea is to paginate as little data as necessary, and then do a self-join to get the rest of the data for a single page.
You can read more about it here: https://aaronfrancis.com/2022/efficient-pagination-using-def... or here https://planetscale.com/blog/fastpage-faster-offset-paginati....
There are libraries for Laravel (https://github.com/hammerstonedev/fast-paginate) and Rails (https://github.com/planetscale/fast_page) as well!
Cursor based pagination is wonderful, but sometimes you're stuck with offset/limit for whatever reason. Might as well make it fast.
-
Faster offset pagination for Rails apps
The PlanetScale team puts out incredible engineering content. Congrats on the release!
If you're using Laravel, there's a package that you can use to achieve the same effect: https://github.com/hammerstonedev/fast-paginate
- Faster offset / limit pagination for Laravel
- hammerstonedev/fast-paginate: A fast implementation of offset/limit pagination for Laravel.
table-builder
-
Best practice for running Symfony 5 project with Docker and Docker-Swarm
In development you wouldn't use the build stage, you would just use the runtime stage and map your local files to your container using a volume. I normally configure all this using docker compose. You could still run things like composer through docker to ensure complete consistency between development and the build server (I normally do this with the help of bash scripts).
What are some alternatives?
Laravel - Laravel is a web application framework with expressive, elegant syntax. We’ve already laid the foundation for your next big idea — freeing you to create without sweating the small things.
Bolt 5 Core - 🧿 Bolt 5 core
lazy-json-pages - 📜 Framework-agnostic package to load items from any paginated JSON API into a Laravel lazy collection via async HTTP requests.
symfony-docker - A Docker-based installer and runtime for Symfony. Install: download and `docker compose up`.
cursor-pagination - Cursor pagination for your Laravel API
Kimai 2 - Kimai is a web-based multi-user time-tracking application. Works great for everyone: freelancers, companies, organizations - everyone can track their times, generate reports, create invoices and do so much more. SaaS version available at https://www.kimai.cloud [Moved to: https://github.com/kimai/kimai]
laravel-vue-crud-starter - Laravel 8 + Vue 2 + AdminLTE 3 based Crud Starter template
Grav - Modern, Crazy Fast, Ridiculously Easy and Amazingly Powerful Flat-File CMS powered by PHP, Markdown, Twig, and Symfony
fast_page - Blazing fast pagination for ActiveRecord with deferred joins ⚡️
DoctrineMigrationsBundle - Symfony integration for the doctrine/migrations library
Pagerfanta - Pagination library for PHP applications with support for several data providers