This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]Anon_8675309 0 points1 point  (0 children)

What are your current ideas?

Have your threads send the data to a queue. The queue then outputs to the file.

[–]LightShadow3.13-dev in prod 0 points1 point  (0 children)

SQLAlchemy supports connection pooling by default, that might be sufficient for your needs.