|
|
|
|
|
by gabetax
1483 days ago
|
|
Check https://use-the-index-luke.com/no-offset as a better reference. But in most SQL databases, cursors are something you implement and parse at the application layer, and translate to a WHERE clause on the (hopefully indexed) column you're ordering on. That turns the O(N) "OFFSET" into a O(log(n)) index seek. |
|
That said, they tend to live only as long as the db connection (with some exceptions), so yeah you need some application work to make it sane.