Keep mysql connection open
问题 I'm making a eggdrop tcl script to write activity of several public IRC channels to a database (over time this will be 10 to 15 channels I think). I have two options how to handle the database connection in mind. An user says something -> Open a mysql connection to the database -> insert information about what the user said -> close the connection Start the bot -> Open a mysql connection to the database -> Insert information when there is channel activity -> Wait for more information etc. I