Speed of paged queries in Oracle

后端 未结 4 1609
死守一世寂寞
死守一世寂寞 2020-12-14 12:27

This is a never-ending topic for me and I\'m wondering if I might be overlooking something. Essentially I use two types of SQL statements in an application:

  1. Re
4条回答
  •  鱼传尺愫
    2020-12-14 12:59

    A "LIMIT ... OFFSET" is pretty much syntactic sugar. It might make the query look prettier, but if you still need to read the whole of a data set and sort it and get rows "50-60", then that's the work that has to be done.

    If you have an index in the right order, then that can help.

提交回复
热议问题