This is my situation, requests are made through the browser to my application. Each request is handled by a different thread and in some cases these requests include INSERT, UPDATE, DELETE, in a sqlite database. What I do not understand is how to manage the connection to the db.
For each thread I have to use a new connection (and thus open-close connection) making sure that there are never two connections with the same name? Or should I create a single connection to the DB and I have to use a mutex to avoid concurrency issues? I'm using QTSql library and SQLite as database
Sorry for my bad english.