by dahfizz · 3y ago · 0 comments
What if scaling to millions of objects forces real tradeoffs for the hundreds of objects case?
It feels like you're asking people to only create Postgres, but SQLite has a perfectly valid use case as well.
In this case, git checking the access time of 500k files is fundamentally slow. The only way around this is to change how git tracks files, which all come with other usability tradeoffs. Git itself supports a fsmonitor that makes handling more files faster, but very few people use it because the tradeoffs aren't worth it.
I don't mean this to be a "well actually" comment, but because I found it interesting when I learnt this a few weeks ago - some limits for SQLite [1] are actually higher than the limits for Postgres [2] (specifically the number of columns in a table and the maximum size of a single field).