I have some simple code that generates 3 millions insert queries.
I have two VPSes, one with 512MB RAM and one with 2GB RAM. On the 512MB RAM VPS, I can insert about 50,000 rows in 5 minutes. On the larger VPS, I can insert 1 million rows in the same time.
Is RAM size related to SQL performance?
Is true that the more RAM the VPS offers, the faster the queries?
I agree with MDMarra,
"That said, you can have all the RAM in the world and have low disk IO throughput and be worse off. It depends on your workload."
But, generally, all the hosting providers on higher plans offer more RAM and more disk performance. So, the final questions is: Is true that buying an excellent vps plan will guarantee excellent sql queries performances?