paint-brush
Please Don't Use OFFSET and LIMIT For Your Paginationby@ivoecpereira
14,814 reads
14,814 reads

Please Don't Use OFFSET and LIMIT For Your Pagination

by Ivo Pereira4mJuly 5th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

OfFSET and LIMIT are widely used for pagination in MVPs and low-data listings. But when you want to build reliable and effective systems from the scratch, you might as well do it right upfront. The higher your OFFSET, the longer the query will take the longer it will take. Instead of storing current OFFSet and LimIT locally and passing the query with the current key (usually an and the query) instead of the query, Cursor is called Cursor.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Please Don't Use OFFSET and LIMIT For Your Pagination
Ivo Pereira HackerNoon profile picture
Ivo Pereira

Ivo Pereira

@ivoecpereira

Chief Technology Officer @ Ongagement, Web & Mobile Applications Developer and Security Enthusiast

Learn More
LEARN MORE ABOUT @IVOECPEREIRA'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Ivo Pereira HackerNoon profile picture
Ivo Pereira@ivoecpereira
Chief Technology Officer @ Ongagement, Web & Mobile Applications Developer and Security Enthusiast

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite