Thread Safety

Visto 15 veces
Saltar al primer mensaje no leído

Praveen Kumar

no leída,
20 jul 2020, 19:55:2120/7/20
a sqlalchemy

Confirming some details re: thread safety ( I noticed older posts in this group on the topic... but they're quite old ) --

I'm using version 1.2.7, and can't upgrade. I understand that Connection and Transaction are not threadsafe.

Are Engine and QueuePool ( the default pool ) threadsafe ? Can you please confirm that Engine.execute() is threadsafe ?

Are there any thread-safety issues with any of the other pool classes included in the sqlalchemy.pool module ?

Thanks,

pk

Mike Bayer

no leída,
21 jul 2020, 2:04:5021/7/20
a noreply-spamdigest via sqlalchemy
use of engine.execute(), engine.connect(), as well as the work done by the underlying pool is threadsafe.






Thanks,

pk


--
SQLAlchemy -
The Python SQL Toolkit and Object Relational Mapper
 
 
To post example code, please provide an MCVE: Minimal, Complete, and Verifiable Example. See http://stackoverflow.com/help/mcve for a full description.
---
You received this message because you are subscribed to the Google Groups "sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+...@googlegroups.com.

Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos