.Net 4.0 Memory-Mapped Files verses RDMS Storage

Posted by Harry on Stack Overflow See other posts from Stack Overflow or by Harry
Published on 2009-10-30T00:02:50Z Indexed on 2010/05/26 15:21 UTC
Read the original article Hit count: 270

Filed under:
|
|

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

  1. Adhoc query support
  2. SQL Management Tools
  3. Schema changes (adding more columns and setting default values)

Memory-Mapped Pros

  1. Lighter overhead? (this is an assumption on my part)
  2. Shareable between process threads
  3. Any others?

Is it worth it for performance gains?

© Stack Overflow or respective owner

Related posts about c#4.0

Related posts about memory-mapped-files