问题描述
SQL Server 2014 有一个名为 In Memory OLTP 的新功能,它可以将表存储在内存中.临时表可以通过在内存中缓存临时表来做类似的事情.那么,有什么区别吗?以及这两种方式的性能如何?
SQL Server 2014 has a new feature called In Memory OLTP and it could store tables in memory. Temp table could do the similar thing by caching the temp table in memory. So, is there any difference? and How about the performance of these two ways?
推荐答案
内存中的 OLTP 和存储在内存中的临时表的内容之间存在很大差异,没有任何简洁的答案可以真正做到公正.它们是苹果和橙子.此外,与任何其他解决方案相比,内存中 OLTP 的优势将在很大程度上取决于您尝试解决的特定问题.如果您对该功能感兴趣,我建议您阅读可从这篇博文中链接到的白皮书:
There is so much difference between in memory OLTP and the contents of a temp table being stored in memory, that no succinct answer would really do it justice. They're apples and oranges. Additionally, the benefits of in-memory OLTP versus any other solution is going to be largely dependant upon the specific problem you're trying to solve. If you're interested in the feature, I would recommend reading the white papers which can be linked to from this blog post:
这篇关于内存中 OLTP 与 OLTP 之间的区别临时表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!