Open tgy3300 opened 2 weeks ago
Hi. I have to point out that few things are seriously wrong with your code:
mysql_async
or properly wrap blocking calls into spawn_blocking.Conn
or use single Pool
to manage DB connections.Regarding the memory usage in your case — I've tried your code as is on Mac and have only 3,7 MB of reported memory usage.
Regarding memory usage in general — few things may add here:
max_allowed_packet
setting defined on the server sidemax_allowed_packet * number of active connections in the pool
Through the
cargo build -r
mission package out of the package, after starting, why the memory is so high, after debugging, is the reason for mysql library, I have any problems with the use of mysql library?