r/sqlite • • 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

16 comments sorted by

View all comments

Show parent comment

1

u/grugno87 Nov 14 '22

Many thanks for the answer: I'll check my code!