access一张表中大约有60W笔记录
直接在access中查询
select top 10 * from table order by id
需要6秒钟时间
而直接select * from table order by id却只要1秒钟
id为自增量主键
列出全部记录反而比列出10比记录的时间要多得多,为什么会这么奇怪?
...全文
1695打赏收藏
access中,为什么 select top 10 * from table比select * from table还慢?
access一张表中大约有60W笔记录 直接在access中查询 select top 10 * from table order by id 需要6秒钟时间 而直接select * from table order by id却只要1秒钟 id为自增量主键 列出全部记录反而比列出10比记录的时间要多得多,为什么会这么奇怪?