Apparently with the Ryzen processor, the slots are limited: "The Framework Laptop 13 with Ryzen™ 7040 Series processors has two fully capable USB4 ports, with the back left and back right Expansion Cards slots. The front left Expansion Card slot can handle both USB 3.2 and DisplayPort Alt Mode, while the front right Expansion Card can use USB 3.2. This does mean there is one Expansion Card slot that can't support the HDMI or DisplayPort Expansion Cards, and most OS's will provide a warning if you forget. You can charge your Framework Laptop through any of the four Expansion Cards as well.".
One of the best ways I've managed latency with MySQL is basically this:
1) use persistent connections, let the OS handle them and tweak it to allow (both connecting server and mysql server). And never close the connection on the application side. (This could lead to potential deadlocks, but there are ways around it, like closing bad connections to clear thread info on mysql).
2) run the whole thing in a transaction, simply begin transaction or autocommit if allowed (same thing)
Doing so, when you are done rendering the content, flush it and send the correct signal to say nginx or apache to say it's done (like PHP's fastcgi_finish_request when working with FPM), and then run your commit. Obviously used when you can safely disregard failed inserts.