Flask mysql close connection

 Try to answer


Flask mysql close connection

Comments

  1. If your script has a fair amount of processing to perform after fetching the result and has retrieved the full result set, you definitely should close the connection. If you don't, there's a chance the MySQL server will reach it's connection limit when the web server is under heavy usage.

    ReplyDelete

Post a Comment