Hi all,
I have a question for you guys, what is the best practice for using a local sqlite database on a permanent server (running 24/7):
1. Open the connection once (when server starts) and reuse it forever while the server is running.
2. Open and close the connection every time a query to the database is made.
Both have pros and cons, i ask for advice based on personal experience.
I have a question for you guys, what is the best practice for using a local sqlite database on a permanent server (running 24/7):
1. Open the connection once (when server starts) and reuse it forever while the server is running.
2. Open and close the connection every time a query to the database is made.
Both have pros and cons, i ask for advice based on personal experience.