TiDB 4.0版本,默认的读取方式是Lease Read吗

首先,功能层面,Lease Read 是 ReadIndex 的一种优化,当 leader 没有租约的时候,还需要通过 ReadIndex 确认每个 Region 的 Leader 位置。应该是二者均用。

其次,时间层面,2016 年 11 月 25 日 lease read 相关 PR 就被合进 TiKV 了。也就是说 TiKV 1.0 其实就有这个优化了。

1 个赞