In this video tutorial, you will be able to see which one is faster to accomplish 10,000 records insert using the same method, the on-premise MySQL running on an ECS of 2 vCPU 4GB RAM or the RDS MySQL of 1 vCPU 1GB RAM?
Here are the codes to create stored procedures that mentioned in the video.
DROP PROCEDURE IF EXISTS proc_initData;
#create a stored producer for 10,000 records generation
DELIMITER $
CREATE PROCEDURE proc_initData()
BEGIN
DECLARE i INT DEFAULT 1;
WHILE i 《= 10000 DO
INSERT INTO speed_test_cloud(name,createTime) values('hello',NOW());
SET i = i+1;
END WHILE;
END $
#call the PROCEDURE to generate test data
CALL proc_initData();
If you want to try it on your own, here are the latest offers and free trials you can apply.
https://www.alibabacloud.com/product/databases
👉️ Part 2 of this tutorial series: https://www.alibabacloud.com/blog/general-testing-on-rds---part2-write-performance-competition-find-the-truth_599529
The Basic Use of RDS (Part 4): Introduction To ApsaraDB RDS MySQL Series
General Testing on RDS - Part2: Write Performance Competition: Find The Truth
ApsaraDB - November 25, 2022
ApsaraDB - November 25, 2022
ApsaraDB - November 25, 2022
ApsaraDB - November 25, 2022
ApsaraDB - April 14, 2020
digoal - September 2, 2020
Alibaba Cloud PolarDB for MySQL is a cloud-native relational database service 100% compatible with MySQL.
Learn MoreLeverage cloud-native database solutions dedicated for FinTech.
Learn MoreMigrating to fully managed cloud databases brings a host of benefits including scalability, reliability, and cost efficiency.
Learn MoreMigrate your legacy Oracle databases to Alibaba Cloud to save on long-term costs and take advantage of improved scalability, reliability, robust security, high performance, and cloud-native features.
Learn MoreMore Posts by ApsaraDB