3 ms·
> What happens if process A reads from a file while process B writes it? If process B started first, the writer blocks access to the table being written to, so
by wyoung2 9y ago
> What happens if process A reads from a file while process B writes it?
If process B started first, the writer blocks access to the table being written to, so the reader waits for the writer to complete. There are timeout and retry behaviors, but within those configurable limits, that's what happens.
You can make SQLite behave as you worry about if you set the retries to 0 and timeout to 0, but that's not the default.