Skip to content

laravel-trials/cursor-vs-offset-pagination

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

laravel cursor vs offset pagination

Pagination Type Elapsed Time
$query->paginate(10) ~8 seconds
$query->fastPaginate(10) ~6 seconds
$query->simplePaginate(10) ~4 seconds
$query->cursorPaginate(10) ~3 seconds

SQL Query