4 ms·
> why can't sqlite just scale for me. Because it's not a client/server implementation, it's a single embedded library, and because part of the requirements wer
by dorfsmay 10y ago
> why can't sqlite just scale for me.
Because it's not a client/server implementation, it's a single embedded library, and because part of the requirements were to use a single data file. Therefore, each process (all completely independent) accessing that file:
-needs to lock the entire file (rather than tables/rows)
-needs to flush and close the file after each write
-cannot prioritize I/O across processes, one file open the file, read or write, close the file (as opposed to do all the writes at once for example)
-cannot cache very effectively, every time a process writes, all the other processes have to re-load the file
etc...