比较好的策略是使用 延迟关联: 通过使用覆盖索引查询返回需要的主键、再根据这些主键关联原表获得需要的行 

     假如有这样一个查询

select film_id,actor,description from film where actor='WaterBin' order by title limit 100000,5

   可以这样改造

select film.film_id,film.actor,film.description
  from film
inner join (
     select film_id from film where f.actor='WaterBin'
     order by title limit 100000,5 )
as f using(film_id);

相关文章:

  • 2021-11-26
  • 2022-12-23
  • 2021-09-02
  • 2022-02-08
  • 2022-02-23
猜你喜欢
  • 2022-12-23
  • 2021-09-24
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2021-11-19
  • 2021-11-25
相关资源
相似解决方案