Is the disk size the same configured on the M5 vs M10? The IOPS are based off storage size. I’m assuming CPU is the same or better, and you’ve checked that.
This week I upgraded from m5 to m10 and I’m having the same problem, I started to notice slowness in my API routes, so I identified slow searches in the database, I worked for two days creating new indexes and comparison tests in my queries, but looking at the logs from a few days ago I noticed that the same queries in the same conditions are much, much slower, I don’t know what to do and I need to solve it. Have you had any success in finding the problem?