Video title should be "How to master backend pagination in 24 minutes"... Amazing demo in a very short time, learning with you really rocks man. Thank you :D
Thank you so much! I try to keep my videos as short as possible, even though sometimes they get a bit long like this video. I'm glad you enjoyed every minute of it, though. :)
I would like to point out that in pagination, there are 2 techniques you can use. one is LIMIT/OFFSET approach, which this video shows. An alternative is KEYSET/SEEK method. It should be noted with LIMIT/OFFSET approach, your users will see some omitted/duplicate items in your pages when someone simultaneously adds/removes some data. So if you are implementing such as infinite scroll on a many-user web-app, go for KEYSET approach instead for stable data retrieval.
Took only 4 minutes for WDS to build a simple yet working API with the minimal file structure 👍 man, you're always so concise and effective :) Exactly what I was looking for.
Your didactics are simply amazing, man. It must be the 3rd or 4th time you solve an issue of mine in less than 1/3 of an already short video. AND you managed to solve another unrelated question in the meantime. Holy crap, you're an unsung hero.
A comprehensive tutorial on the pagination of data fetched from MongoDB. Smoothly and fluently presented. Thank you, Kyle. PS This has come very fortuitously when I most needed it! - It simply popped up on my RU-vid Home Page by some weird coincidence. :-) {2021-08-17}, {2022-07-16}, {2022-10-12}
I like the explanatory style. It was simple yet abstracted enough that I watched this once and was able to immediately apply this to a Lambda function, no Express in my setup. Thank you
Ur videos are in the most understandable way compared to others. Thanks you so much.. and i was hoping that is there any way that you create a video about pgination with Search bar.. pls 🙏
This is quick, to the point, with excellent and easy explanations. Really enjoyed this and all of your videos ive come across. Thank you. Told all my classmates about your channel!
I always wonder why your logical thinking and solutions are concise and to the point?? do u have an explanation for that and how can a person feel that confident about programming??? what sources you use what university you attended???
Thank you. There is a tiny mistake on 9:20 tho. The condition is always true because the length of the array is always greater than any of the inlexes. lastIndex < model.length - 1 should work better.
Can someone explain why at 7:33, results array is being used twice "results.results = users.slice(startIndex, endIndex)"? One should be enough right? Why the code use dot to link the 2 results terms together?
This is fantastic, thank you for your very clear teaching. Any chance you have available or could produce a pagination tutorial explaining the process of pulling data from a public API (not from a database) and paginating those results?
hello... I'm on the middle learning Reactjs, can you show us how the best practice to create a search with paginated logic in react&redux while it collecting the data from API (mongoose or laravel API server)? some advice would be appreciated :D Thanks for sharing an incredible tutorial from youtube
This is really great. Thank you very much Kyle. I have learnt a lot. However, there is a little gotcha in this solution. In the query, we still try to query for all results in a collection before doing any filters (limit and skip. Assume that you have a really big collection, thousands or millions records, this query could take time to execute. Do you know of there is any way that we address this issue ? Again, thanks Kyle !!!
Think you could make a video on using Datatables? I'm trying to do server side processing with MongoDB with pagination. Also trying to figure out how to add buttons to each row that would change a field and a button to display a field that isn't in the table with a modal popup. Love the videos man!
Great tutorial, really easy to follow to learn new things. One question I have though, how to get the total number of pages available depending on the current page and limitation ? Thanks.
Hi best tutorial I've seen for pagination! Quick question though, in your mongoose example you're finding all results inside a collection, I've got some some routes where I want to paginate every results and then I've got other routes where I'm queering the collection for specific results that I then want to paginate, how would I handle that in the middleware? Thank you