AWS RDS Mssql performance issues.

0

I have an AWS RDS Mssql and On-premise Mssql, Both servers have 4 CPUs and 16 Memory. Both servers have the same data in the table about 700k records. When the exec query selects 1000 records first. AWS RDS Mssql: ~2.4 seconds On-premise Mssql: ~ 0.5 seconds. Why is AWS RDS Mssql too slower than On-premise Mssql?

3 Answers
1

This could be due to latency from the client. What is the distance between the on-prem client and SQL versus the on-prem client and RDS MSSQL? Also, run the query on both platforms and record the query stats to determine exactly where the latency is. Does the query involve any indexes? Are these indexes present on both platforms? Have you checked the query plan of each platform for any differences.. Are statistics up to date? Finally, is the performance of the storage the same with regard to IOPS and throughput.. perhaps there is more caching of data on-prem versus in RDS. I hope these ideas will help you to locate the reason for the difference in query speed.

profile pictureAWS
answered a year ago
  • Yes, I think that. I tried:

    • Increase max server memory to the max -> it did not change
    • Indexing it -> Execute time same as the on-prem.
    • Other than that I try to install Mssql on the Ec2 and have the same config (4 CPUs and 16 Memory). And It has the performance same as the on-prem.
1

Great. So, from you answer above I understand that you now have the same execution time as on-prem after updating the indexes. And a SQL Server on EC2 instance that you launched also has the same performance. Looks like you're good.

profile pictureAWS
answered a year ago
0

Also, I do not think that your RDS instance matches the specs you mention.

AWS
MODERATOR
philaws
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions