TiDB分页查询流程

为什么 order by limit 慢

因为:

每个 region 都要返回 Top250

而不是:

只要200

所以:

region数越多
分页越慢

特别是:

limit 100000,10

会变成:

Top100010

非常重。

2 个赞