<?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>dummy insert &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/dummy-insert/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, 25 Dec 2016 13:25:46 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.4</generator>
	<item>
		<title>MySQL: The BLACKHOLE Storage Engine, Perform Dummy Insert on Table</title>
		<link>https://www.dbrnd.com/2016/12/mysql-the-blackhole-storage-engine-perform-dummy-insert-on-table-empty-insert/</link>
					<comments>https://www.dbrnd.com/2016/12/mysql-the-blackhole-storage-engine-perform-dummy-insert-on-table-empty-insert/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Sat, 24 Dec 2016 13:25:00 +0000</pubDate>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[blackhole storage engine]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[dummy insert]]></category>
		<category><![CDATA[empty set]]></category>
		<category><![CDATA[MySQL Command]]></category>
		<category><![CDATA[MySQL Database Administrator]]></category>
		<category><![CDATA[MySQL Database Designing]]></category>
		<category><![CDATA[MySQL Database Programming]]></category>
		<category><![CDATA[MySQL Error]]></category>
		<category><![CDATA[MySQL Performance Tunning]]></category>
		<category><![CDATA[MySQL Query]]></category>
		<category><![CDATA[MySQL Tips and Tricks]]></category>
		<category><![CDATA[skip data insert]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=3782</guid>

					<description><![CDATA[Have you ever wished that you do not want to insert any data, but want to execute INSERT command ? This is looking like a very strange requirement, but this is possible in MySQL. MySQL has a BLACKHOLE Storage Engine which we can use for the empty or the dummy INSERT on Table. When we [&#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%2F12%2Fmysql-the-blackhole-storage-engine-perform-dummy-insert-on-table-empty-insert%2F&amp;linkname=MySQL%3A%20The%20BLACKHOLE%20Storage%20Engine%2C%20Perform%20Dummy%20Insert%20on%20Table" 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%2F12%2Fmysql-the-blackhole-storage-engine-perform-dummy-insert-on-table-empty-insert%2F&amp;linkname=MySQL%3A%20The%20BLACKHOLE%20Storage%20Engine%2C%20Perform%20Dummy%20Insert%20on%20Table" 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%2F12%2Fmysql-the-blackhole-storage-engine-perform-dummy-insert-on-table-empty-insert%2F&amp;linkname=MySQL%3A%20The%20BLACKHOLE%20Storage%20Engine%2C%20Perform%20Dummy%20Insert%20on%20Table" 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%2F12%2Fmysql-the-blackhole-storage-engine-perform-dummy-insert-on-table-empty-insert%2F&amp;linkname=MySQL%3A%20The%20BLACKHOLE%20Storage%20Engine%2C%20Perform%20Dummy%20Insert%20on%20Table" 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%2F12%2Fmysql-the-blackhole-storage-engine-perform-dummy-insert-on-table-empty-insert%2F&amp;linkname=MySQL%3A%20The%20BLACKHOLE%20Storage%20Engine%2C%20Perform%20Dummy%20Insert%20on%20Table" 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%2F12%2Fmysql-the-blackhole-storage-engine-perform-dummy-insert-on-table-empty-insert%2F&amp;linkname=MySQL%3A%20The%20BLACKHOLE%20Storage%20Engine%2C%20Perform%20Dummy%20Insert%20on%20Table" 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%2F12%2Fmysql-the-blackhole-storage-engine-perform-dummy-insert-on-table-empty-insert%2F&#038;title=MySQL%3A%20The%20BLACKHOLE%20Storage%20Engine%2C%20Perform%20Dummy%20Insert%20on%20Table" data-a2a-url="https://www.dbrnd.com/2016/12/mysql-the-blackhole-storage-engine-perform-dummy-insert-on-table-empty-insert/" data-a2a-title="MySQL: The BLACKHOLE Storage Engine, Perform Dummy Insert on Table"></a></p><p><strong>Have you ever wished that you do not want to insert any data, but want to execute INSERT command ?</strong></p>
<p>This is looking like a very strange requirement, but this is possible in MySQL. </p>
<blockquote><p>MySQL has a BLACKHOLE Storage Engine which we can use for the empty or the dummy INSERT on Table.</p></blockquote>
<blockquote><p>When we created a BLACKHOLE table, It creates with only .frm table format file and It has no any other file associated with it. </p></blockquote>
<blockquote><p>When you execute your INSERT on BLACKHOLE Table, It stores only binary log and It does not store any kind of data.</p></blockquote>
<p><strong>When we should use BLACKHOLE Storage Engine?</strong></p>
<blockquote><p>When we require to measure the performance only on the binary logging process. Mostly we require to test binary logging performance for bulk operations. </p></blockquote>
<blockquote><p>When we require to find performance bottlenecks not related to disk-storage.</p></blockquote>
<blockquote><p>When we require slave-side data validation and filtering, we can create a dummy BLACKHOLE table at the master-side which reduces the overall traffic. </p></blockquote>
<p><strong>Check the status of BLACKHOLE Engine:</strong></p>
<pre class="crayon-plain-tag">SHOW ENGINES;</pre> </p>
<p><strong>Create BLACKHOLE table:</strong></p>
<pre class="crayon-plain-tag">CREATE TABLE tbl_Students
(
    RNO INT NOT NULL
    ,StudName VARCHAR(20) NOT NULL
)ENGINE = BLACKHOLE;</pre> </p>
<p><strong>Try to insert few records:</strong></p>
<pre class="crayon-plain-tag">INSERT INTO tbl_Students
VALUES 
(1,'Anvesh'),(2,'Neevan')
,(3,'Jeeny'),(4,'Roy');</pre> </p>
<p><strong>Check inserted data, which return Empty Set:</strong></p>
<pre class="crayon-plain-tag">SELECT *FROM tbl_Students;
Empty set (0.00 sec)</pre> </p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2016/12/mysql-the-blackhole-storage-engine-perform-dummy-insert-on-table-empty-insert/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
