Seeing as that MySQL/PDO does not support scrollable cursors, is there any other way to advance the cursor without fetching the data, and without using OFFSET
?
I basically need to equivalent of mysql_data_seek
. I know there's an existing question that's basically the same but the answers there recommend fetching the rows to advance the cursor, or to use PDO::ATTR_CURSOR => PDO::CURSOR_SCROLL
which doesn't work.
I've tried fetching the rows, but it's causing massive slowness on my server because MySQL is sending way more data than it needs to.
I just want to confirm or deny the existence of a method to advance the cursor before I spend many hours rewriting dozens of queries in a legacy app.