创建CLUSTERED INDEX分区后,缓慢查询数据[azure] [英] Query data slowly after create CLUSTERED INDEX partition [azure]

查看:75
本文介绍了创建CLUSTERED INDEX分区后,缓慢查询数据[azure]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Azure sql server上,我为一个包含7百万条记录的表创建了CLUSTERED INDEX分区。然后我的网站加载数据需要10秒以上。但如果我不创建CLUSTERED INDEX分区,我的网站需要将近6秒钟来加载数据。如果我使用在sql server enterprise上创建CLUSTERED INDEX分区的相同数据库并将其放在LAN中的服务器上,我的网站大约需要3秒钟来加载数据。



我尝试了什么:



你能告诉我这个问题的任何解决方案。谢谢

On Azure sql server ,I have created CLUSTERED INDEX partition for a table with 7 millions record . Then my website takes more than 10 seconds to load data .But if I don't create CLUSTERED INDEX partition , my website takes nearly 6 seconds to load data. If I use the same database which created CLUSTERED INDEX partition on sql server enterprise and put it on a server located in the LAN, my website takes about 3 seconds to load data .

What I have tried:

Could you tell me any solution for this problem. Thanks

推荐答案

您在显示数据时是否使用任何order by子句?它与任何创建的非聚集索引完全无关?
Are you using any order by clause while displaying data? and it is totally irrelevant to any of the non-clustered index created?


这篇关于创建CLUSTERED INDEX分区后,缓慢查询数据[azure]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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