Using TLiteConnection from threads
Posted: Fri 09 Sep 2016 01:13
Hi,
Can I use one TLiteConnection from multiple threads in same time without any synchronization in my code (TCriticalSection, Synchronize, etc) ? Or I must create separate TLiteConnection in each thread ? Can't find anything about it in Help file.
And second question: should I use TLiteConnection.Options.EnableSharedCache for best perfromance if I read/write to database from threads ?
Thanks for help !
Can I use one TLiteConnection from multiple threads in same time without any synchronization in my code (TCriticalSection, Synchronize, etc) ? Or I must create separate TLiteConnection in each thread ? Can't find anything about it in Help file.
And second question: should I use TLiteConnection.Options.EnableSharedCache for best perfromance if I read/write to database from threads ?
Thanks for help !