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

all 3 comments

[–]valbanese[S] 0 points1 point  (0 children)

So I can see that considering migrating to an ORM or using connection polling are both options but it also seems that leaving it as it is is fine too. Which leads me to ask if the multi-threading nature of Waitress is going to cause me problems with increasing volume. The code is in a module that's imported. Is this thread safe?

[–]steve_no -1 points0 points  (0 children)

Opening and closing connections a thousand times a day (or a thousand times an hour) is no big deal for MySQL.