.Net 4.0 内存映射文件与 RDMS 存储
我对人们的想法感兴趣,比较在基于 SQL 的传统数据库中存储数据或利用 内存映射文件,例如新的 .Net 4.0 运行时中的文件。所讨论的数据将是简单结构的数组。
明显的优点和缺点:
SQL 数据库优点
- 即席查询支持
- SQL 管理工具
- 架构更改(添加更多列并设置默认值)
内存映射优点
- 开销更轻? (这是我的假设)
- 可在进程线程之间共享
- 还有其他吗?
为了性能提升值得吗?
I'm interested in people's thoughts comparing storing data in a traditional SQL based Database or utilising a Memory-Mapped File such as the one in the new .Net 4.0 runtime. The data in question would be arrays of simple structures.
Obvious pros and cons:
SQL Database Pros
- Adhoc query support
- SQL Management Tools
- Schema changes (adding more columns and setting default values)
Memory-Mapped Pros
- Lighter overhead? (this is an assumption on my part)
- Shareable between process threads
- Any others?
Is it worth it for performance gains?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

发布评论
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
您可以尝试 MongoDB,并获得两个世界的混合(内存映射存储上的类似数据库的功能)。
这里有一篇好文章,可以引导您完成 MongoDB 的安装和编码:
Going NoSQL with MongoDB
You could try out MongoDB, and get a mixture of both worlds (database-like features over a memory mapped store).
Here's a good article that can walk you through installing and coding to MongoDB:
Going NoSQL with MongoDB