我们如何通过使用order by子句来减少性能问题? [英] How do we reduce performance issue by using order by clause?

查看:97
本文介绍了我们如何通过使用order by子句来减少性能问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我们在我们的选择查询中使用order by子句时,它会遇到一些性能问题。

When we use order by clause in our select query, it will hit some performance issue.

我们如何通过顺序或者什么是实现相同的结果在更短的时间内获得结果的最佳方法是什么?

How would we be achieve the same results with out order by or what is the best way to get the results in less time?

提前致谢

Siddanth

推荐答案




为了获得更好的结果,您需要在该列上有一个索引。如果索引不是一个选项,请尝试根据您已有的索引获得结果。 

for better results, you need to have an index on that column. if having an index is not an option, try if you can get the results based on the indexes that you already have. 


这篇关于我们如何通过使用order by子句来减少性能问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆