Pagination in MySQL - offset vs. cursor

preview_player
Показать описание
——————————————————
——————————————————
00:00 Intro
00:12 How to pronounce paginate
00:30 The two pagination methods
00:54 We have bosses
01:25 Select * from people
01:45 Deterministic ordering
03:20 Limit/offset pagination
05:17 Shifting records in offset pagination
06:12 Cursor based pagination
08:13 Ordering by two columns
09:23 Cursor pagination drawbacks
09:53 Cursor pagination advantages
10:50 Summary of differences
——————————————————

💬 Follow PlanetScale on social media
Рекомендации по теме
Комментарии
Автор

I use both techniques, but most of the time I use limit/offset because the need for paginating to a specific page, I use cursor technique for paginating notifications and tasks and similar things.
Thanks Aaron! that was an amazing video as usual.

ahmad-murery
Автор

Your content is fenomenal. Explanation and visualization is great. One of the best DB channels out there 👏

username
Автор

Cursor pagination seems super useful in scenarios, where you have:
a) infinite scroll pagination
b) a table that updates in real time
c) both

itsxFUL
Автор

I’m always actually learning stuff I thought I already knew with you guys. Great content!

Автор

Really clear and not sloppy, I like the way you demonstrate thing to people and it's really helpful! Thanks for such great content!

yangsui
Автор

Im about to add pagination to an old report, and at first I was going with limit offset, but after watching this video I know it makes a lot more sense to just use cursor. Thanks for such an organized and well thought out video.🎉🎉

rafl
Автор

Ive been looking at articles for cursor based pagination, this has been the most informative in actually implementing it. Thank you

ben-brady
Автор

Paginate vs Paginate is the next great battle in tech. Great deep dive on the differences between the two paginate (paginate?) methods that give a really good framework to help decide when you might reach for each one.

A++++ would buy again.

chrispian
Автор

that was really informative. keep up the great content. i feel like db subjects are not really talked about. so this channel is a blessing

andredasilva
Автор

This video is insanely timely, great explanation, thanks!!

TamDNB
Автор

this is an excellent description of the differences between the two methods, thank you for putting this together!

ninedulkar
Автор

I've been using paginate, chunk and cursor in Laravel, but only LIMIT OFFSET in MySQL. This is a great video! Thanks!

NathanBudd
Автор

I learnt a new thing today! Thank you for the excellent teaching!

ucretsiztakipci
Автор

You are the first person to explain this in a way I understand, while still being very technical and using SQL examples.

vamosOrea
Автор

Super helpful explanation and visuals! Thank you!

joey
Автор

I have been working with MySQL for last 17 years and I never use cursor but your video helped me to understand MySQL cursor. Thank you.

LiveNobin
Автор

You're raising the bar with each and every video, Aaron. This is not fair!

FarazSamapoor
Автор

very cool content and friendly explain, thank you

khanhpd
Автор

It's such a great show.

I enjoy it more than then education content.
Good job PlanetScale.

riolly
Автор

This was very nice an d compact lesson, thanks mate

sampleshawn
visit shbcf.ru