提问 HN:为什么选择数据库而不是文件系统?
3 分•作者: uticus•4 个月前
粗略地说,数据库可以被描述为用于与磁盘上的数据交互的程序。大多数软件都是为了与数据库交互而构建的,尽管这些软件也有(通常非常强大)通过文件系统交互与磁盘上的数据交互的方式。<p>我的问题是,从历史上看,是什么促使行业专注于数据库特定的解决方案,而不是文件系统特定的解决方案?<p>这并不是对数据库的抱怨,但我确实想知道为什么许多主要的编程语言和框架(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.