3 ms·
> The problem with existing SQL dbs isn’t really the architecture - its the awful queries that do in memory sorting or make temporary tables for no reason or re
by laurencerowe 3y ago
> The problem with existing SQL dbs isn’t really the architecture - its the awful queries that do in memory sorting or make temporary tables for no reason or read-after-write, etc, not network latency. SQLite won’t fix your current production problems.
In my experience SQL databases are pretty poor at executing the kinds of deeply nested joins needed to return all of the data needed to render more complex UIs. It almost always ends up being faster to simply make nested selects in batches. So latency ends up mattering in these cases.
You can work around this by denormalizing the data, but this often explodes your data size.
- ngrilly 3y agoWhich is exactly where SQLite shines, but I guess that was your point: https://www.sqlite.org/np1queryprob.html https://www.sqlite.org/np1queryprob.html