Posts: 292
Threads: 9
Joined: Oct 2011
Reputation:
0
Hey, just a quick question. Is it better to open and close an SQLite database each time you save to it or to just open and close it as the server starts and stops? I'm using it for user accounts so it will most likely be accessed a lot.
Posts: 399
Threads: 9
Joined: Dec 2010
Reputation:
0
I only had one DB, I opened it when the server started and closed it when I closed server.
I had it like that for days on a, let's say: 10 - 20 players daily for a few hours. So I would recommend leaving the DB open and just access info on the fly ( Instead of opening-closing ).