2 ms·
Database is a sophisticated form of compression. Text compression is not so good after all. Database allows you to only keep indexes, and directly access those.
by jokoon 13y ago
Database is a sophisticated form of compression. Text compression is not so good after all. Database allows you to only keep indexes, and directly access those. Text compression is naive and inefficient, database software guide programmers to optimize their data types themselves. It's either that or storing everything in binary files.
We use database because they allow us to organize a binary file. It's a standard, but it's only relevant if you need to use those kind of data patterns.
You also have to understand regex doesn't scale at all.