<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>In-Memory Database &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/in-memory-database/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Sun, 17 Dec 2017 20:35:13 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.6</generator>
	<item>
		<title>SQL Server 2016: Columnstore Index on Memory Optimized In Memory OLTP Tables</title>
		<link>https://www.dbrnd.com/2018/01/sql-server-2016-columnstore-index-on-memory-optimized-in-memory-oltp-tables/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Sun, 07 Jan 2018 16:16:46 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[column store index]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[Hekaton]]></category>
		<category><![CDATA[In-Memory Database]]></category>
		<category><![CDATA[memory database]]></category>
		<category><![CDATA[Memory Optimized Table]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server 2014]]></category>
		<category><![CDATA[SQL Server 2016]]></category>
		<category><![CDATA[SQL Server Administrator]]></category>
		<category><![CDATA[SQL Server Monitoring]]></category>
		<category><![CDATA[SQL Server Performance Tunning]]></category>
		<category><![CDATA[SQL Server Tips and Tricks]]></category>
		<category><![CDATA[TSQL]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=4201</guid>

					<description><![CDATA[<div><img width="675" height="400" src="https://www.dbrnd.com/wp-content/uploads/2017/12/SQLRam.jpg" class="attachment-post-image size-post-image wp-post-image" alt="SQLRam" decoding="async" fetchpriority="high" /></div>Microsoft SQL Server 2016 comes with a variety of new additions and I am happy for exploring the new features of SQL Server 2016. Microsoft SQL Server 2014 introduced Hekaton engine which used for In-Memory Database objects. SQL Server 2014: Create Memory Optimized File Group and Table SQL Server 2016 introduced Columnstore index for Memory-Optimized [&#8230;]]]></description>
										<content:encoded><![CDATA[<div><img width="675" height="400" src="https://www.dbrnd.com/wp-content/uploads/2017/12/SQLRam.jpg" class="attachment-post-image size-post-image wp-post-image" alt="SQLRam" decoding="async" /></div><p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F01%2Fsql-server-2016-columnstore-index-on-memory-optimized-in-memory-oltp-tables%2F&amp;linkname=SQL%20Server%202016%3A%20Columnstore%20Index%20on%20Memory%20Optimized%20In%20Memory%20OLTP%20Tables" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F01%2Fsql-server-2016-columnstore-index-on-memory-optimized-in-memory-oltp-tables%2F&amp;linkname=SQL%20Server%202016%3A%20Columnstore%20Index%20on%20Memory%20Optimized%20In%20Memory%20OLTP%20Tables" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F01%2Fsql-server-2016-columnstore-index-on-memory-optimized-in-memory-oltp-tables%2F&amp;linkname=SQL%20Server%202016%3A%20Columnstore%20Index%20on%20Memory%20Optimized%20In%20Memory%20OLTP%20Tables" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F01%2Fsql-server-2016-columnstore-index-on-memory-optimized-in-memory-oltp-tables%2F&amp;linkname=SQL%20Server%202016%3A%20Columnstore%20Index%20on%20Memory%20Optimized%20In%20Memory%20OLTP%20Tables" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F01%2Fsql-server-2016-columnstore-index-on-memory-optimized-in-memory-oltp-tables%2F&amp;linkname=SQL%20Server%202016%3A%20Columnstore%20Index%20on%20Memory%20Optimized%20In%20Memory%20OLTP%20Tables" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F01%2Fsql-server-2016-columnstore-index-on-memory-optimized-in-memory-oltp-tables%2F&amp;linkname=SQL%20Server%202016%3A%20Columnstore%20Index%20on%20Memory%20Optimized%20In%20Memory%20OLTP%20Tables" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F01%2Fsql-server-2016-columnstore-index-on-memory-optimized-in-memory-oltp-tables%2F&#038;title=SQL%20Server%202016%3A%20Columnstore%20Index%20on%20Memory%20Optimized%20In%20Memory%20OLTP%20Tables" data-a2a-url="https://www.dbrnd.com/2018/01/sql-server-2016-columnstore-index-on-memory-optimized-in-memory-oltp-tables/" data-a2a-title="SQL Server 2016: Columnstore Index on Memory Optimized In Memory OLTP Tables"></a></p><p>Microsoft SQL Server 2016 comes with a variety of new additions and I am happy for exploring the new features of SQL Server 2016.</p>
<p>Microsoft SQL Server 2014 introduced Hekaton engine which used for In-Memory Database objects.</p>
<blockquote class="wp-embedded-content" data-secret="dA5hDdDtd2"><p><a href="https://www.dbrnd.com/2016/01/sql-server-2014-create-memory-optimized-file-group-and-table/">SQL Server 2014: Create Memory Optimized File Group and Table</a></p></blockquote>
<p><iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  src="https://www.dbrnd.com/2016/01/sql-server-2014-create-memory-optimized-file-group-and-table/embed/#?secret=dA5hDdDtd2" data-secret="dA5hDdDtd2" width="600" height="338" title="&#8220;SQL Server 2014: Create Memory Optimized File Group and Table&#8221; &#8212; Database Research &amp; Development" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></p>
<blockquote><p>SQL Server 2016 introduced Columnstore index for Memory-Optimized Table which was not possible previously.<br />
If you are planning to store large amount of data In Memory, you can apply Columnstore Index on that In Memory OLTP Table.</p></blockquote>
<blockquote><p>It comes with one condition: you can not apply Columnstore Index on the particular column. It must apply to all the columns of In-Memory Table.</p></blockquote>
<p><strong>Small demonstration with all the possible errors:</strong></p>
<p><strong>Create a sample memory optimized table with column store index:</strong></p>
<pre class="crayon-plain-tag">CREATE TABLE tbl_Employees
(
	EmpID INT
	,EmpName VARCHAR(50)
	,EmpSalary INT
	,EmpDOJ DATETIME
	,INDEX idx_tbl_Employees_columnstore CLUSTERED COLUMNSTORE 
)
WITH (MEMORY_OPTIMIZED = ON)
GO</pre> </p>
<p><strong>You will get a below error:</strong></p>
<pre class="crayon-plain-tag">Msg 41321, Level 16, State 7, Line 1
The memory optimized table 'tbl_Employees' with DURABILITY=SCHEMA_AND_DATA must have a primary key.</pre> </p>
<p><strong>Add primary key on script and execute it:</strong></p>
<pre class="crayon-plain-tag">CREATE TABLE tbl_Employees
(
	EmpID INT PRIMARY KEY
	,EmpName VARCHAR(50)
	,EmpSalary INT
	,EmpDOJ DATETIME
	,INDEX idx_tbl_Employees_columnstore CLUSTERED COLUMNSTORE 
)
WITH (MEMORY_OPTIMIZED = ON)
GO</pre> </p>
<p><strong>You will get a below error:</strong></p>
<pre class="crayon-plain-tag">Msg 12317, Level 16, State 78, Line 3
Clustered indexes, which are the default for primary keys, are not supported with memory optimized tables. Specify a NONCLUSTERED index instead.</pre> </p>
<p><strong>Apply Non Clustered Primary key and execute it:</strong></p>
<pre class="crayon-plain-tag">CREATE TABLE tbl_Employees
(
	EmpID INT PRIMARY KEY NONCLUSTERED
	,EmpName VARCHAR(50)
	,EmpSalary INT
	,EmpDOJ DATETIME
	,INDEX idx_tbl_Employees_columnstore CLUSTERED COLUMNSTORE 
)
WITH (MEMORY_OPTIMIZED = ON)
GO</pre> </p>
<p><strong>If you have not created Memory Optimized File group and related files, you may get a below error:</strong></p>
<pre class="crayon-plain-tag">Msg 41337, Level 16, State 100, Line 1
Cannot create memory optimized tables. To create memory optimized tables, the database must have a MEMORY_OPTIMIZED_FILEGROUP that is online and has at least one container.</pre> </p>
<p><strong>Create memory optimized file group and data files:<br />
</strong></p><pre class="crayon-plain-tag">USE [master]
GO
ALTER DATABASE [Database_Name] 
ADD FILEGROUP [Memory_Optimized] CONTAINS MEMORY_OPTIMIZED_DATA 
GO
ALTER DATABASE [Database_Name] 
ADD FILE ( NAME = N'HekatonMemory', FILENAME = N'C:\Hekaton\hek.mdf' ) 
TO FILEGROUP [Memory_Optimized]
GO</pre><p> </p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>SQL Server 2014: Monitor Memory Optimized Tables which stored in Memory</title>
		<link>https://www.dbrnd.com/2018/01/sql-server-2014-monitor-memory-optimized-tables-which-stored-in-memory-dm_db_xtp_table_memory_stats/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Wed, 03 Jan 2018 16:16:43 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server DBA Script]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[Hekaton]]></category>
		<category><![CDATA[In-Memory Database]]></category>
		<category><![CDATA[Memory Optimized Table]]></category>
		<category><![CDATA[monitor memory table]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server Administrator]]></category>
		<category><![CDATA[SQL Server Monitoring]]></category>
		<category><![CDATA[SQL Server Performance Tunning]]></category>
		<category><![CDATA[SQL Server Tips and Tricks]]></category>
		<category><![CDATA[TSQL]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=4169</guid>

					<description><![CDATA[<div><img width="442" height="293" src="https://www.dbrnd.com/wp-content/uploads/2017/12/SQLMemory.jpg" class="attachment-post-image size-post-image wp-post-image" alt="SQL Memory" decoding="async" loading="lazy" /></div>SQL Server 2014 introduced the concept of In-Memory Database which provides the best combination of RDBMS + In-Memory Database. SQL DBA is monitoring the size of tables, indexes and other fragmentation related information. When we say that SQL Server tables stored in memory, we should also keep our eyes open on the utilization of memory. [&#8230;]]]></description>
										<content:encoded><![CDATA[<div><img width="442" height="293" src="https://www.dbrnd.com/wp-content/uploads/2017/12/SQLMemory.jpg" class="attachment-post-image size-post-image wp-post-image" alt="SQL Memory" decoding="async" loading="lazy" /></div><p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F01%2Fsql-server-2014-monitor-memory-optimized-tables-which-stored-in-memory-dm_db_xtp_table_memory_stats%2F&amp;linkname=SQL%20Server%202014%3A%20Monitor%20Memory%20Optimized%20Tables%20which%20stored%20in%20Memory" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F01%2Fsql-server-2014-monitor-memory-optimized-tables-which-stored-in-memory-dm_db_xtp_table_memory_stats%2F&amp;linkname=SQL%20Server%202014%3A%20Monitor%20Memory%20Optimized%20Tables%20which%20stored%20in%20Memory" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F01%2Fsql-server-2014-monitor-memory-optimized-tables-which-stored-in-memory-dm_db_xtp_table_memory_stats%2F&amp;linkname=SQL%20Server%202014%3A%20Monitor%20Memory%20Optimized%20Tables%20which%20stored%20in%20Memory" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F01%2Fsql-server-2014-monitor-memory-optimized-tables-which-stored-in-memory-dm_db_xtp_table_memory_stats%2F&amp;linkname=SQL%20Server%202014%3A%20Monitor%20Memory%20Optimized%20Tables%20which%20stored%20in%20Memory" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F01%2Fsql-server-2014-monitor-memory-optimized-tables-which-stored-in-memory-dm_db_xtp_table_memory_stats%2F&amp;linkname=SQL%20Server%202014%3A%20Monitor%20Memory%20Optimized%20Tables%20which%20stored%20in%20Memory" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F01%2Fsql-server-2014-monitor-memory-optimized-tables-which-stored-in-memory-dm_db_xtp_table_memory_stats%2F&amp;linkname=SQL%20Server%202014%3A%20Monitor%20Memory%20Optimized%20Tables%20which%20stored%20in%20Memory" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F01%2Fsql-server-2014-monitor-memory-optimized-tables-which-stored-in-memory-dm_db_xtp_table_memory_stats%2F&#038;title=SQL%20Server%202014%3A%20Monitor%20Memory%20Optimized%20Tables%20which%20stored%20in%20Memory" data-a2a-url="https://www.dbrnd.com/2018/01/sql-server-2014-monitor-memory-optimized-tables-which-stored-in-memory-dm_db_xtp_table_memory_stats/" data-a2a-title="SQL Server 2014: Monitor Memory Optimized Tables which stored in Memory"></a></p><p>SQL Server 2014 introduced the concept of In-Memory Database which provides the best combination of RDBMS + In-Memory Database.</p>
<blockquote><p>SQL DBA is monitoring the size of tables, indexes and other fragmentation related information.</p></blockquote>
<blockquote><p>When we say that SQL Server tables stored in memory, we should also keep our eyes open on the utilization of memory. </p></blockquote>
<blockquote><p>SQL Server 2014 also introduced one DMV (sys.dm_db_xtp_table_memory_stats) to check the memory utilization of Memory Optimized Tables.<br />
Using this view, you can find memory information like allocated memory and used memory for tables and indexes.</p></blockquote>
<p><strong>Executed below query on AdventureWorks2016ctp3:</strong></p><pre class="crayon-plain-tag">SELECT  
	OBJECT_ID 
	,OBJECT_SCHEMA_NAME(object_id) + '.' + OBJECT_NAME(object_id) AS TableName
	,memory_allocated_for_table_kb 
	,memory_used_by_table_kb 
	,memory_allocated_for_indexes_kb 
	,memory_used_by_indexes_kb
FROM sys.dm_db_xtp_table_memory_stats
GO</pre><p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-4172 size-full" title="sql server memory optimized table" src="https://www.dbrnd.com/wp-content/uploads/2016/12/SQLServerMemoryOptimizedTable.png" alt="sqlservermemoryoptimizedtable" width="974" height="213" srcset="https://www.dbrnd.com/wp-content/uploads/2016/12/SQLServerMemoryOptimizedTable.png 974w, https://www.dbrnd.com/wp-content/uploads/2016/12/SQLServerMemoryOptimizedTable-300x66.png 300w, https://www.dbrnd.com/wp-content/uploads/2016/12/SQLServerMemoryOptimizedTable-750x164.png 750w, https://www.dbrnd.com/wp-content/uploads/2016/12/SQLServerMemoryOptimizedTable-150x33.png 150w" sizes="auto, (max-width: 974px) 100vw, 974px" /></p>
<p><strong>Please visit other related articles:</strong></p>
<blockquote class="wp-embedded-content" data-secret="qk9b7WZejK"><p><a href="https://www.dbrnd.com/2016/01/sql-server-2014-what-is-hekaton/">SQL Server 2014: What is Hekaton?</a></p></blockquote>
<p><iframe loading="lazy" class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  src="https://www.dbrnd.com/2016/01/sql-server-2014-what-is-hekaton/embed/#?secret=qk9b7WZejK" data-secret="qk9b7WZejK" width="600" height="338" title="&#8220;SQL Server 2014: What is Hekaton?&#8221; &#8212; Database Research &amp; Development" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></p>
<blockquote class="wp-embedded-content" data-secret="QSMDGThw7G"><p><a href="https://www.dbrnd.com/2016/01/sql-server-2014-create-memory-optimized-file-group-and-table/">SQL Server 2014: Create Memory Optimized File Group and Table</a></p></blockquote>
<p><iframe loading="lazy" class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  src="https://www.dbrnd.com/2016/01/sql-server-2014-create-memory-optimized-file-group-and-table/embed/#?secret=QSMDGThw7G" data-secret="QSMDGThw7G" width="600" height="338" title="&#8220;SQL Server 2014: Create Memory Optimized File Group and Table&#8221; &#8212; Database Research &amp; Development" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></p>
<blockquote class="wp-embedded-content" data-secret="yYFvB4889G"><p><a href="https://www.dbrnd.com/2016/04/sql-server-find-the-total-row-count-and-size-of-the-tables/">SQL Server: Find the total row count and size of the Tables</a></p></blockquote>
<p><iframe loading="lazy" class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  src="https://www.dbrnd.com/2016/04/sql-server-find-the-total-row-count-and-size-of-the-tables/embed/#?secret=yYFvB4889G" data-secret="yYFvB4889G" width="600" height="338" title="&#8220;SQL Server: Find the total row count and size of the Tables&#8221; &#8212; Database Research &amp; Development" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>SQL Server 2014: What is Hekaton?</title>
		<link>https://www.dbrnd.com/2016/01/sql-server-2014-what-is-hekaton/</link>
					<comments>https://www.dbrnd.com/2016/01/sql-server-2014-what-is-hekaton/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Sat, 09 Jan 2016 18:12:56 +0000</pubDate>
				<category><![CDATA[Database Theory]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[Hekaton]]></category>
		<category><![CDATA[In-Memory Database]]></category>
		<category><![CDATA[MVCC]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server 2014]]></category>
		<category><![CDATA[SQL Server Administrator]]></category>
		<category><![CDATA[SQL Server Monitoring]]></category>
		<category><![CDATA[SQL Server Performance Tunning]]></category>
		<category><![CDATA[SQL Server Tips and Tricks]]></category>
		<category><![CDATA[TSQL]]></category>
		<category><![CDATA[WITH NATIVE_COMPILATION]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=1242</guid>

					<description><![CDATA[The Hekaton is a new database engine, also known as SQL Server In-Memory OLTP. Hekaton collaborated with Microsoft Research and released with Microsoft SQL Server 2014. The Hekaton is a Greek word and meaning is 100 because that newly launched in-memory database which is 100 times faster than the existing SQL Server engine. If you [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F01%2Fsql-server-2014-what-is-hekaton%2F&amp;linkname=SQL%20Server%202014%3A%20What%20is%20Hekaton%3F" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F01%2Fsql-server-2014-what-is-hekaton%2F&amp;linkname=SQL%20Server%202014%3A%20What%20is%20Hekaton%3F" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F01%2Fsql-server-2014-what-is-hekaton%2F&amp;linkname=SQL%20Server%202014%3A%20What%20is%20Hekaton%3F" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F01%2Fsql-server-2014-what-is-hekaton%2F&amp;linkname=SQL%20Server%202014%3A%20What%20is%20Hekaton%3F" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F01%2Fsql-server-2014-what-is-hekaton%2F&amp;linkname=SQL%20Server%202014%3A%20What%20is%20Hekaton%3F" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F01%2Fsql-server-2014-what-is-hekaton%2F&amp;linkname=SQL%20Server%202014%3A%20What%20is%20Hekaton%3F" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F01%2Fsql-server-2014-what-is-hekaton%2F&#038;title=SQL%20Server%202014%3A%20What%20is%20Hekaton%3F" data-a2a-url="https://www.dbrnd.com/2016/01/sql-server-2014-what-is-hekaton/" data-a2a-title="SQL Server 2014: What is Hekaton?"></a></p><p>The Hekaton is a new database engine, also known as SQL Server In-Memory OLTP.<br />
Hekaton collaborated with Microsoft Research and released with Microsoft SQL Server 2014.</p>
<blockquote><p>The Hekaton is a Greek word and meaning is 100 because that newly launched in-memory database which is 100 times faster than the existing SQL Server engine.</p></blockquote>
<p>If you don&#8217;t know about In-memory database, you can visit a below article.</p>
<blockquote class="wp-embedded-content" data-secret="4FVJwBW9NI"><p><a href="https://www.dbrnd.com/2015/12/database-theory-what-is-in-memory-database/">Database Theory: What is In-memory Database?</a></p></blockquote>
<p><iframe loading="lazy" class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  src="https://www.dbrnd.com/2015/12/database-theory-what-is-in-memory-database/embed/#?secret=4FVJwBW9NI" data-secret="4FVJwBW9NI" width="600" height="338" title="&#8220;Database Theory: What is In-memory Database?&#8221; &#8212; Database Research &amp; Development" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></p>
<p>If we look at traditional RDBMS system, memory resources are expensive, and mostly optimize for disk storage.</p>
<blockquote><p>The Hekaton allows us to work with memory-optimized tables and indexes which entirely stores in the main memory, and still, we can access via T-SQL like any other regular tables.</p>
<p>We can also create a stored procedure by adding the &#8220;WITH NATIVE_COMPILATION&#8221; clause that only refers to the memory-optimized tables.</p></blockquote>
<p>The Hekaton eliminates logical locks using automatic SNAPSHOT ISOLATION with multi-versioning, also having a lock free and latch free structures for accessing the data.</p>
<p><strong>How Hekaton is different than SQL Server standard relational engine?</strong></p>
<p><em>Very simple answer,</em></p>
<blockquote><p>SQL Server standard relational engine developed basically for those data which resides on disk, and it reads and writes 8 KB per data pages which are available in the extents. This process requires lots of CPU I/O and memory internal operations.</p></blockquote>
<blockquote><p>With the memory-optimized tables, there are no any data pages and extents. It stores only the data rows into memory with index pointer.</p>
<p>The engine also supports MVCC (Multiversion Concurrency Control) in which same data row has may be the different versions at a time so last updated version accessible by last most requests.</p>
<p>Because of MVCC nature, reader and writer process never block to each other in the Hekaton engine.</p></blockquote>
<blockquote class="wp-embedded-content" data-secret="GI0g1xFd94"><p><a href="https://www.dbrnd.com/2015/05/what-is-mvcc-multi-version-concurrency-control/">What is Multi Version Concurrency Control (MVCC)</a></p></blockquote>
<p><iframe loading="lazy" class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  src="https://www.dbrnd.com/2015/05/what-is-mvcc-multi-version-concurrency-control/embed/#?secret=GI0g1xFd94" data-secret="GI0g1xFd94" width="600" height="338" title="&#8220;What is Multi Version Concurrency Control (MVCC)&#8221; &#8212; Database Research &amp; Development" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2016/01/sql-server-2014-what-is-hekaton/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Database Theory: What is In-memory Database?</title>
		<link>https://www.dbrnd.com/2015/12/database-theory-what-is-in-memory-database/</link>
					<comments>https://www.dbrnd.com/2015/12/database-theory-what-is-in-memory-database/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Thu, 24 Dec 2015 17:56:30 +0000</pubDate>
				<category><![CDATA[Database Theory]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database concept]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[database standards]]></category>
		<category><![CDATA[database topic]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[IMDB]]></category>
		<category><![CDATA[In-Memory Database]]></category>
		<category><![CDATA[Main Memory Database]]></category>
		<category><![CDATA[RDBMS]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=1134</guid>

					<description><![CDATA[The In-memory database, also known as a Main-memory database. (IMDB or MMDB). As a Database Architecture, I like this topic and implementation in which data reside in the main memory area. What is In-memory database? In-memory database is one kind of database whose data stored in main memory for faster response and quick retrieval. The [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2015%2F12%2Fdatabase-theory-what-is-in-memory-database%2F&amp;linkname=Database%20Theory%3A%20What%20is%20In-memory%20Database%3F" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2015%2F12%2Fdatabase-theory-what-is-in-memory-database%2F&amp;linkname=Database%20Theory%3A%20What%20is%20In-memory%20Database%3F" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2015%2F12%2Fdatabase-theory-what-is-in-memory-database%2F&amp;linkname=Database%20Theory%3A%20What%20is%20In-memory%20Database%3F" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2015%2F12%2Fdatabase-theory-what-is-in-memory-database%2F&amp;linkname=Database%20Theory%3A%20What%20is%20In-memory%20Database%3F" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2015%2F12%2Fdatabase-theory-what-is-in-memory-database%2F&amp;linkname=Database%20Theory%3A%20What%20is%20In-memory%20Database%3F" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2015%2F12%2Fdatabase-theory-what-is-in-memory-database%2F&amp;linkname=Database%20Theory%3A%20What%20is%20In-memory%20Database%3F" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2015%2F12%2Fdatabase-theory-what-is-in-memory-database%2F&#038;title=Database%20Theory%3A%20What%20is%20In-memory%20Database%3F" data-a2a-url="https://www.dbrnd.com/2015/12/database-theory-what-is-in-memory-database/" data-a2a-title="Database Theory: What is In-memory Database?"></a></p><p>The In-memory database, also known as a Main-memory database. (IMDB or MMDB).<br />
As a Database Architecture, I like this topic and implementation in which data reside in the main memory area.</p>
<p><strong>What is In-memory database?</strong></p>
<blockquote><p>In-memory database is one kind of database whose data stored in main memory for faster response and quick retrieval. The data loads into system memory in a compressed form.<br />
The In-memory databases are faster than extensive disk-based databases because it doesn&#8217;t require any Disk I/O operations.<br />
The internal algorithms are also simpler and require few CPU instructions. </p></blockquote>
<p><strong>Why not RDBMS Database Caching?</strong></p>
<blockquote><p>Most of RDBMS products provide a feature of database caching, but with the use of In-memory database, we should not have only one goal to avoid disk I/O. </p>
<p>The database caching we can use only for reading data and for writing data it requires again disk I/O, even managing database cache is also quite challenging and it also requires strong memory and CPU. </p></blockquote>
<p><strong>If a system or main memory crash, what will happen?</strong></p>
<blockquote><p>Once power switch off for device, all stored information is also removed so we can say IMDB not support &#8220;durability&#8221; of the <a href="https://www.dbrnd.com/2015/05/acid-properties-in-database-system/" target="_blank">ACID property</a>. </p>
<p>Most of the IMDB systems offer features like to take snapshots periodically and write to non-volatile media. If system crash or fail, database Rollback to last completed transaction.<br />
We can also increase the durability of IMDB by adding one or more copy of the database.<br />
We can also configure replication and failover procedure for IMDB systems. </p></blockquote>
<p><strong>What kind of applications typically uses In-memory database?</strong></p>
<blockquote><p>The IMDB system is one type of analytic database and utilised for the read-only system. It uses by Data warehouse and Data mart for accessing historical data.<br />
The real-time embedded system is also using an IMDB system for fast manipulation.<br />
Other applications like IP-Network routing, telecom switching and DTH system are also using IMDB systems. </p></blockquote>
<p><a href="https://en.wikipedia.org/wiki/List_of_in-memory_databases" target="_blank">You can visit this reference to find list of IMDB Systems. </a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2015/12/database-theory-what-is-in-memory-database/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
