Hello I have a telegram bot connected to a MySQL db. I'm using a free account of PythonAnywhere which allows me to have max 3 connections to db per user. But I've been getting a max_user_connections error, so I've configured my SQLAlchemy engine like this:
engine = create_engine(db_url, echo=False, echo_pool=True, pool_size=1, pool_recycle=1200)
I was under the impression that with pool_size=1, there would be only one connection to db. But there is 2! Can you help me understand why that is?
Here's what SHOW PROCESSLIST shows me:
The first one is the console I'm checking the process list with. But the next two were created as the bot worked.
I also added max_overflow=0 just to test but that didn't make any difference either.
