2 ms·
A file system can be considered a document database with the key being the file name.
by DeathArrow 4y ago
A file system can be considered a document database with the key being the file name.
- IshKebab 4y agoSome filesystems even have very database-like features e.g. ZFS has copy-on-write snapshotting, sort-of transactions (you can run a Lua script atomically, thought it's meant to be an admin feature). And lets not forget WinFS! Still, your average extfs/NTFS is a really bad database. There's a reason people created "real" databases, and as far as I can tell the only advantage of flat files is that you can use a text editor instead of an SQL editor to view them, which seems pretty minor given all the downsides. SQLite is probably better in almost every scenario.
- Gigachad 4y agoIf you used it somewhat like how you use redis , you’d probably run out of inodes and other performance issues. Directories aren’t designed to have millions of files in them.
- lmm 4y agoDepends on the filesystem. ReiserFS used to be popular for mail servers or especially news servers, precisely because it was great at handling millions of small files.