Bad performance on RDS MariaDB

0

I'm migrating an ancient on-premises 5.5.65 MariaDB to RDS. The new RDS MariaDB 10.6 not show CPU, IOPs or Memory problems but the SQLs are too slow. One complex SELECT cost 0,89 sec on premises and 2,93 using an EC2 in the same VPC. I have compared the execution plans an are different but probably is because the different versions.

On_premises execution On_premises execution

EC2 over RDS in the same VPC RDS with EC2

I don't know if the differences on the "key" column are relevant to this issue.

Any experience on bad performance with RDS and MariaDB?

已提问 2 年前630 查看次数
1 回答
1
已接受的回答

It seems different optimization was applied. Rowid filtering is an optimization available from MariaDB 10.4.3+, so please disable rowid_filter optimizer switch, and re-issue the query.

SET SESSION optimizer_switch='rowid_filter=off';, then issue the query.

AWS
已回答 2 年前
  • Thanks! I need to investigate why a new optimization is degrading performance, but works as workaround.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则