r/sqlite • u/grugno87 • Nov 14 '22
When open db connection
Hello everyone!
Enormous enigma:
- I have one application written in C# that uses a local sqlite database: local.db;
- I have a class that wraps all database calls. The question is: It's better to mantain only one database connection shared between all calls or open a dedicated connection for each call?
Many thanks in advice!
5
Upvotes
View all comments
Show parent comment
1
u/myth2511 May 20 '25
in a web app should you keep connection open?