JS Party: JavaScript, CSS, Web Development cover image

Building GraphQL backends with NestJS

JS Party: JavaScript, CSS, Web Development

00:00

Using Offset and Cursor Base Page Nation

The problem with offset base page nation is, if you have a large table, it gets slower the more you page into it. And so we'll take that for every entity that comes back and assign unique cursor base off its position in the list. We can then quickly create an additional filter that we just throw on there to look at all records passed or greater than one they've had before. With curser, you also get the stark curser and t e end curser,. So you don't need to look at every note in the response, for every edge in the response," he said.

Play episode from 34:26
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app