we know that
select * from table order by id limit 1000000,10
can be optimized in this way
select * from table where id > (select id from table order by id limit 1000000,1) limit 10
but if we are using a multi-column index like idx_ab (a,b), how to optimize the following sql command?
select * from table order by a,b limit 1000000,10