I am going by the documentation (http://www.gammon.com.au/scripts/doc.php?general=lua_sqlite3) and opening my db -> execute/query -> closing the database.
I do a lot of queries constantly so I am wondering if I should just be opening the database on plugin connect and then closing it on disconnect, instead of opening and closing thousands of times in a session.
Are there risks to not closing it? Does opening/closing so many times cause noticeable lag compared to just opening it once?
Any input appreciated.
I do a lot of queries constantly so I am wondering if I should just be opening the database on plugin connect and then closing it on disconnect, instead of opening and closing thousands of times in a session.
Are there risks to not closing it? Does opening/closing so many times cause noticeable lag compared to just opening it once?
Any input appreciated.