Spring Boot Kotlin - API pagination with JPA

Published: 04 December 2022
on channel: Vladsave Coding
1,406
30

In this video we are implementing API pagination in a Spring Boot project using JPA. We are going to discuss a couple of pitfalls that we need to watch out for and also illustrate two methods for pagination: by page number and by cursor.

Starter Liquibase Migration:
https://github.com/titus58/youtube-tu...

Source code and URLs:
https://github.com/titus58/youtube-tu...

Chapters:
00:00 Introduction
00:35 Initialize the project
02:20 Initialize the database
07:48 Pagination in MySQL
08:46 Pitfall: un-stable sorting order
10:42 Pitfall: table not indexed
12:18 Create secondary index in Liquibase
14:06 Start on the Kotlin code
25:14 Pagination by cursor
34:22 Final testing and thoughts


Watch video Spring Boot Kotlin - API pagination with JPA online without registration, duration hours minute second in high quality. This video was added by user Vladsave Coding 04 December 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,406 once and liked it 30 people.