开发者

Using memtables in sql. When is it reasonable and is it safe?

开发者 https://www.devze.com 2022-12-25 00:11 出处:网络
I was just reading an update from a friend\'s project, mentioning the use of memtables to store data temporatily and then flush to a table on disk. Up to now, I have never faced a situation where开发者

I was just reading an update from a friend's project, mentioning the use of memtables to store data temporatily and then flush to a table on disk. Up to now, I have never faced a situation where开发者_运维技巧 I would use a memtable, or a situation where I would think the use of a mem table would be beneficial; so I wonder, when would someone use mem tables? what makes a memtable (appart from access speed) a reasonable choice? and how safe is it, even for temp data? there is always the limitation of available physical memory.


Is your friend's project using Cassandra (or a similar NoSQL project)? Because that product use Memtables structures in exactly the way you describe.

Whereas all the DBMS products you include in your tags already implement their own memory management/data writing routines. I cannot imagine why we would want to overlay a feature the RDBMS already provides to us. Unless we have too much idle time and need to burn some budget.

0

精彩评论

暂无评论...
验证码 换一张
取 消