How to measure performance of query in oracle

前端 未结 4 787
不知归路
不知归路 2021-02-09 01:40

I\'m new to Oracle db. I have 2 queries which return the same result set. I want to measure the performance of each of them and choose the better one. How do I do that using Ora

4条回答
  •  我在风中等你
    2021-02-09 02:10

    Basic answer - execute each query a couple of times and see which one is faster. Best part - you can do this without learning about Oracle performance. The only thing you need to know is that you can not trust the first try because most of the time it will read data from disk while second try will use cached data from RAM. That is why you try each query a couple of times.

提交回复
热议问题