问HN:为什么选择数据库而不是文件系统?

3作者: uticus11 天前原帖
数据库可以粗略地描述为一个用于与磁盘上数据进行交互的程序。大多数软件都是为了与数据库进行交互而构建的,尽管这些软件通常也有(往往非常强大的)通过文件系统与磁盘上的数据进行交互的方式。 我的问题是,历史上是什么驱动行业关注数据库特定的解决方案,而不是文件系统特定的解决方案? 这并不是对数据库的抱怨,但我确实想知道为什么许多主要的编程语言和框架(如RoR Active Directory、C# EF等)在使数据库交互在编程语言的视角下变得顺畅方面投入了大量精力,而不是在与磁盘上的数据交互方面下功夫。这有点像一种另类现实的思考。
查看原文
A database could be described crudely as a program for interfacing with data on disk. Most software is built to interface with databases although the software also has (often very capable) ways of interfacing with data on disk via filesystem interaction.<p>My question is, what historically has driven the industry to focus on database-specific solutions, rather than on filesystem-specific solutions?<p>This is not a rant against databases, but I do wonder why many major programming languages and frameworks (RoR Active Directory, C# EF, etc) have put much effort into making database interaction smooth from the perspective of the programming language, instead of putting effort into interacting with data on disk. Kind of an alternate reality sort of musing.