4 ms·
> But why SQLite, if you're going for vertical scaling? From the benchmarks I’ve seen, because it’s significantly faster, specifically round trip times. This w
by klabb3 3y ago
> But why SQLite, if you're going for vertical scaling?
From the benchmarks I’ve seen, because it’s significantly faster, specifically round trip times. This would make sense since SQLite is in-process and doesn’t need serialization[1]. Which in turn offers a second, optional advantage within reach - serial processing of operations, which is significantly easier to test, reason about, and build supporting cache layers around.
[1]: If you don’t use a Unix socket you also have networking overhead - but you said same server so I’ll leave this as a side-note since it’s extremely common to put postgres on a different machine for isolation. In fact, it’s one of the main advantages with networked dbs.