延迟关联(解决海量数据分页优化)

xiaoxiao2021-02-28  75

延迟关联 关联的核心思想是MySql的b-tree缩影的覆盖索引。通过使用覆盖索引查询返回需要的主键,再根据主键关联原表获得需要的数据

相关文档: http://blog.itpub.net/22664653/viewspace-1176153/

海量数据分页优化 1.禁止用户查询很多页之后的数据 2.使用where limit eg: select id,name from tableName limit 5000000,10; select id,name from tableName where id>5000000 limit 10; 3.使用延迟关联

参考文献: http://superve.leanote.com/post/海量数据分页优化

转载请注明原文地址: https://www.6miu.com/read-26885.html

最新回复(0)