Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS RDS Performance Insights - view full queries

I'm using a MySQL-Server from AWS RDS. I would like to inspect the queries made by the app to optimize them. My problem is, that almost every query is longer than 1024 chars (which is the max-size, as stated here). So I cannot identify the query by the first 1024 chars, as thats only the SELECT-Part - the interesting parts WHERE, ORDER, and so on are truncated. Since the app uses an ORM-System, I cannot change the queries to shorten them. Already tried to increase the option performance_schema_max_digest_length in the parameter-group to 4096, but that has no effect (no change can be seen in the options directly on the server). What can I do?

like image 883
cklm Avatar asked Jul 17 '19 19:07

cklm


1 Answers

That is a static parameter, so rebooting your instance may resolve the issue. Please see the following explanation from the AWS docs:

When you change a static parameter and save the DB parameter group, the parameter change takes effect after you manually reboot the DB instance. You can reboot a DB instance using the RDS console or by explicitly calling the RebootDbInstance API action (without failover, if the DB instance is in a Multi-AZ deployment). The requirement to reboot the associated DB instance after a static parameter change helps mitigate the risk of a parameter misconfiguration affecting an API call, such as calling ModifyDBInstance to change DB instance class or scale storage

Working with Parameter groups

like image 78
vjones Avatar answered Oct 03 '22 18:10

vjones