Put it this way - moving a sqlite file with 1 million rows is much easier than moving 1 million files.
Put it this way - moving a sqlite file with 1 million rows is much easier than moving 1 million files.
Performance is "just" an engineering issue.
This is a tale and argument as old as time. It’s the squinting that is the problem. The devil is in the details.
There's also no ways to really make a file system faster when dealing with many small files and directories. If you can avoid doing it by using a database you probably should.
Depends on the file/directory structure. Traditionally back in the CGI days URI's were links to files on a server. They often still are for static files. If you know the path to a file then the lookup should be very fast.
But yeah any other type of index other then the path isn't really possible.
Sort of, yeah. Consider how many command line programs will accept a file as an input parameter vs. how many will accept an SQL query.
Existing tooling is predominantly designed to work with files so depending on what you're trying to accomplish, you may have a lot more work to do when using a database.
And yes - we work really hard to address the performance issues here, but there are constraints.
Or possibly a document based data store.
The monolithic persistence layer is an anti pattern unless you have specific reasons to support it.
ZFS is quite nice as filesystems go but it is still a filesystem.