5 ms·
A file system is a database though. Not a relational one, granted, but it's still basically nosql before it was cool.
by marginalia_nu 4y ago
A file system is a database though. Not a relational one, granted, but it's still basically nosql before it was cool.
- layer8 4y agoToday’s filesystems are more like the NoSQL equivalent of hierarchical databases, which were the very first database design, created in the 1960s, preceding RDBMSs.
- crazygringo 4y agoI don't think you can really call something a database if it doesn't have a query language, at least in contemporary practice. And I wouldn't call "cd", "ls", "mkdir", "rm", "cat" and "echo" a query language. Even the first navigational databases had a proper query language, although radically different from SQL.
- gkbrk 4y agoWould you call "get", "set", "del" and "rename" a query language? Because they are commonly used commands for Redis.
- ta988 4y agoNow add find, grep, xargs, sed, awk and put all those together with pipes
- jabbany 4y agoConsidering things like wildcards and glob matching these don't seem far off from what you'd use in a graph db query language. (E.g. something like neo4j)
- esjeon 4y ago"Language" is just an interface. You can SQL a filesystem if you want, and also can build 3rd party indexers that query engines can benefit from.
- hasperdi 4y agoExactly! https://osquery.io https://osquery.io is one example that
- kevin_thibedeau 4y agoPath syntax with shell globbing is the query language.
- tadfisher 4y agoThere are plenty of databases without associated query languages. RocksDB, FoundationDB, and LMDB to name three. "Queries" are generally "list keys in this range" and all of the higher-level metadata you would want to query on (e.g. relations) are encoded in the key. I would absolutely put filesystems in this camp.
- tenebrisalietum 4y agoDatabases have schema that can change (understood without having to scan content) and indexes - beyond trivial ones like "name; content" and "order written to disk".
- deleted 4y ago[deleted]