SQLite must reanalyze the database schema each time a new connection is created. This can take a long time. The remaining link also opens up SQLite's ability to cache data. Since you receive ACID transactions without even closing the connection, there is no reason to close it. So, keep the SQLite connection open until the application is closed.
source share