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?

gefragt vor 2 Jahren633 Aufrufe
1 Antwort
1
Akzeptierte Antwort

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
beantwortet vor 2 Jahren
  • Thanks! I need to investigate why a new optimization is degrading performance, but works as workaround.

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen