How to measure performance of query in oracle

前端 未结 4 788
不知归路
不知归路 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:08

    On OTN, Randolf Geist and me have written two posts about how to measure performance. If you do as indicated in those threads, you will have gathered information to be able to choose the better one.

    If you want the full version, visit Randolf's.

    If you want a short version, visit mine:

    Both threads explain how to use explain plan and tracing to see where time is spent. Then it is up to you to decide what you exactly qualify as "better". This can be the shortest elapsed time, the least amount of used resources, or the smallest number of latches, or maybe something else.

    Hope this helps.

    Regards, Rob.

提交回复
热议问题