zzoli retweeted
This script automates SQL injection testing using SQLMap with AI-powered decision making.
github.com/atiilla/sqlmap-ai
zzoli retweeted
New video out!
In this one I cover the lightning fast full text search library @typesense and how it works with Laravel Scout.
Y'all go check it out!
youtu.be/bDLVeJQei_Q
zzoli retweeted
🔗 Complete Guide to Laravel and Livewire PHP Attributes (23 Attributes) (by @nabilhassen08)
nabilhassen.com/complete-gui…
zzoli retweeted
Sylius 2 is officially here!
It’s been quite a journey, but we made it! Huge thanks to everyone involved: our amazing internal team, the Core Team, and every single contributor who helped make this release possible.
🔗 github.com/Sylius/Sylius/rel…
zzoli retweeted
〰️ Secure intelligent apps with .NET 9 on App Service 〰️
.NET Conf 2024 Premiere Bonus Session now available on demand on our YouTube channel... 🔗 🎥 msft.it/6014WZZuo
Follow the conversation: #dotNETConf
zzoli retweeted
Devs: Check out these 16 hand-picked #OpenSource projects that can boost your development workflow and save you time! 👇
hackernoon.com/16-handpicked… via @HackerNoon #DevCommunity
zzoli retweeted
🔥 FULL TIME! 🔥
#ElClásico
zzoli retweeted
News: PostgreSQL 17 Released! postgresql.org/about/news/po…
zzoli retweeted
API Pagination Basics
Pagination is a technique to divide large datasets into smaller, more manageable chunks that can be retrieved separately. This improves performance and user experience by preventing huge amounts of data from being loaded at once.
There are two common pagination techniques:
Page-Based Pagination
- Simple to implement
- Allow jumping to specific pages easily
1. Decide the number of items per page (fixed or configurable).
2. To get page N, calculate the start index as (N - 1) * page_size. Use LIMIT and OFFSET to fetch that subset of data. For example: `SELECT * FROM table LIMIT 10 OFFSET 20;`
Cursor-Based Pagination
- Efficient for large, constantly updating datasets
- Resilient to shifting rows, e.g. deleted records
- Works well with infinite scroll designs
1. Choose an indexed column as the cursor.
2. Hash the cursor value for security.
3. The client provides the hashed cursor value of the last item they saw.
4. The server uses this cursor to filter and fetch the next page of results after that value.
5. The server returns the hashed cursor value of the last item in the current page.
6. The client uses the new cursor to fetch the next page.
The diagram below illustrates several variations broadly based on these two techniques.
Best Practices for Large Datasets
- Avoid OFFSET for large datasets. OFFSET scans the entire dataset which gets slower as the offset increases.
- Use cursor on indexed columns for efficient lookup of pages.
–
Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/496keA7



























