3 ms·
So if SQLite is typically run embedded in the client application, does this mean it's not supported to have multiple clients operating on the same SQLite DB con
by skohan 6y ago
So if SQLite is typically run embedded in the client application, does this mean it's not supported to have multiple clients operating on the same SQLite DB concurrently, or is there some support for this?
- hypertele-Xii 6y agoIt uses filesystem locking mechanisms to synchronize concurrent access from multiple processes. One writer, multiple readers.
- devin 6y agoThis is covered early on in the article.
- millerm 6y agoIt’s sad when most people discuss things based on a one line title of something they haven’t read. Many questions here were answered in that article. I recently asked someone on a different site “didn’t you read the article?”. The obvious answer I alluded to was “No, I don’t have time.” Yet they managed to post about 15 different comments asking more questions about the article (title). I really wish there was a way to have a public forum with proper discourse with the caveat that people must read the material before they comment on it.
- 5cents 6y agoThe technical blog of the public broadcaster of Norway has implemented exactly this: https://nrkbeta.no/2017/08/10/with-a-quiz-to-comment-readers-test-their-article-comprehension/ https://nrkbeta.no/2017/08/10/with-a-quiz-to-comment-readers... The quiz module is open-source (https://nrkbeta.no/2017/03/06/our-comment-quiz-module-is-now-open-source/ https://nrkbeta.no/2017/03/06/our-comment-quiz-module-is-now...) and available on github https://github.com/nrkbeta/nrkbetaquiz https://github.com/nrkbeta/nrkbetaquiz
- millerm 6y agoThanks for the links. :-)
- thomascgalvin 6y agoIt's mentioned briefly in the article, but no instructions are given on how to properly configure busy_timeout and WAL to scale above more than a few concurrent writes per second.
- webmobdev 6y agoKind of - your web application needs to partially handle that, and SQLite also depends on the OS filesystem to handle concurrent access.