l after
> >> its been constructed:
> >>
> >> self.engine.pool._use_threadlocal = True
> >>
> >> Never alter the value of an underscore variable in any library, the
> >> underscore means "private". The effect of setting this flag after
&g
he flag was already set
>> in any case so it isn't having any effect, but this code should be
>> removed.
>>
>> Next, you are creating many Engine objects, one for each operation via
>> insert_data() -> SqlHelper() -> create_engine(). This is an
>> antipattern a
> in any case so it isn't having any effect, but this code should be
> removed.
>
> Next, you are creating many Engine objects, one for each operation via
> insert_data() -> SqlHelper() -> create_engine(). This is an
> antipattern as there should be exactly one Engine wi
rocess). same goes for the sessionmaker().
>
>
> More details for error
> https://stackoverflow.com/questions/45113145/the-right-way-to-use-gevent-with-sqlalchemy
>
>
> Thanks!
>
> --
> SQLAlchemy -
> The Python SQL Toolkit and Object Relational Mapper
>
&g
f62505537
More details for
error
https://stackoverflow.com/questions/45113145/the-right-way-to-use-gevent-with-sqlalchemy
Thanks!
--
SQLAlchemy -
The Python SQL Toolkit and Object Relational Mapper
http://www.sqlalchemy.org/
To post example code, please provide an MCVE: Minimal, Complete