|
>> 不过索引的建立需要综合考虑全局的应用场景
> 这个问题很棘手,开发永远都是以实现功能为第一要务,并不会考虑到效率问题
I agree that "开发永远都是以实现功能为第一要务". But I have to comment that performance cannot be completely ignored when developers work on functionality. Any type of work, not limited to Oracle database, is prioritized by the benefit-to-effort ratio. If great performance gain can be achieved without too much effort, it must be incorporated into the work even though 实现功能 is 第一要务. If too much effort is needed to gain a little in performance, then it's either placed at the low end of the to-do list or discarded altogether. Adding a good index usually brings about tens to thousands of times of performance gain. It's likely to be high on the priority list. |
|