Record manager keeps open connections to mysql
Describe the bug When embedding the content and using Record Manager it seems like it keeps open connections to mysql and opens up a new connection on each api request. I soon get Too many connections error from mysql
Expected behavior Connection should be terminated once the API request finishes
Setup
- Installation docker
- Flowise Version 2.2.7-patch.1
- OS: Ubuntu
- Browser Chrome
thats strange, it should released the connection for each api request as seen here
@HenryHengZJ await queryRunner.release() does not close the connection. Actually the connections is established via new DataSource() call
Disconnection (closing all connections in the pool) occurs when the destroy method is called.
I created PR #5315 that fixes the issue