As far as I see, there is only one connection and one thread that send/wait for queries, it's probably done there:
https://github.com/liancheng/amy/blob/master/include/amy/impl/mysql_service.ipp#L89
What about resp a custom number of connections and threads on start of program? Then amy could pick free one from the pool and use them. It's extremaly useful when you are handling multiple request in your program, that can not be send like "multi query", for example user login.
As far as I see, there is only one connection and one thread that send/wait for queries, it's probably done there:
https://github.com/liancheng/amy/blob/master/include/amy/impl/mysql_service.ipp#L89
What about resp a custom number of connections and threads on start of program? Then amy could pick free one from the pool and use them. It's extremaly useful when you are handling multiple request in your program, that can not be send like "multi query", for example user login.