<?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>Time to Live &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/time-to-live/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>Wed, 25 Apr 2018 18:18:52 +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>NoSQL: Cassandra Automatic Data Expiration using Time to Live (ttl)</title>
		<link>https://www.dbrnd.com/2016/05/nosql-cassandra-automatic-data-expiration-using-time-to-live-ttl/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Wed, 04 May 2016 19:45:38 +0000</pubDate>
				<category><![CDATA[Cassandra]]></category>
		<category><![CDATA[NoSQL]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[automatic data expiration]]></category>
		<category><![CDATA[Column Store]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[Document Store]]></category>
		<category><![CDATA[Graph Store]]></category>
		<category><![CDATA[Key Value Store]]></category>
		<category><![CDATA[Not Only SQL]]></category>
		<category><![CDATA[Time to Live]]></category>
		<category><![CDATA[ttl]]></category>
		<category><![CDATA[Unstrucutred]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=2675</guid>

					<description><![CDATA[Cassandra Automatic Data Expiration: The Automatic Data Expiration is one of the features of NoSQL Cassandra Database. You can set an expiration time in second to expire a particular data. You can set Time to Live (ttl) value in seconds. The defined TTL data are marked with a Tombstone Garbage collector parameter (deletion marker) and [&#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%2F05%2Fnosql-cassandra-automatic-data-expiration-using-time-to-live-ttl%2F&amp;linkname=NoSQL%3A%20Cassandra%20Automatic%20Data%20Expiration%20using%20Time%20to%20Live%20%28ttl%29" 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%2F05%2Fnosql-cassandra-automatic-data-expiration-using-time-to-live-ttl%2F&amp;linkname=NoSQL%3A%20Cassandra%20Automatic%20Data%20Expiration%20using%20Time%20to%20Live%20%28ttl%29" 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%2F05%2Fnosql-cassandra-automatic-data-expiration-using-time-to-live-ttl%2F&amp;linkname=NoSQL%3A%20Cassandra%20Automatic%20Data%20Expiration%20using%20Time%20to%20Live%20%28ttl%29" 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%2F05%2Fnosql-cassandra-automatic-data-expiration-using-time-to-live-ttl%2F&amp;linkname=NoSQL%3A%20Cassandra%20Automatic%20Data%20Expiration%20using%20Time%20to%20Live%20%28ttl%29" 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%2F05%2Fnosql-cassandra-automatic-data-expiration-using-time-to-live-ttl%2F&amp;linkname=NoSQL%3A%20Cassandra%20Automatic%20Data%20Expiration%20using%20Time%20to%20Live%20%28ttl%29" 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%2F05%2Fnosql-cassandra-automatic-data-expiration-using-time-to-live-ttl%2F&amp;linkname=NoSQL%3A%20Cassandra%20Automatic%20Data%20Expiration%20using%20Time%20to%20Live%20%28ttl%29" 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%2F05%2Fnosql-cassandra-automatic-data-expiration-using-time-to-live-ttl%2F&#038;title=NoSQL%3A%20Cassandra%20Automatic%20Data%20Expiration%20using%20Time%20to%20Live%20%28ttl%29" data-a2a-url="https://www.dbrnd.com/2016/05/nosql-cassandra-automatic-data-expiration-using-time-to-live-ttl/" data-a2a-title="NoSQL: Cassandra Automatic Data Expiration using Time to Live (ttl)"></a></p><p><strong>Cassandra Automatic Data Expiration:<br />
</strong></p>
<blockquote><p>The Automatic Data Expiration is one of the features of NoSQL Cassandra Database.<br />
You can set an expiration time in second to expire a particular data.<br />
You can set Time to Live (ttl) value in seconds.</p></blockquote>
<blockquote><p>The defined TTL data are marked with a Tombstone Garbage collector parameter (deletion marker) and after that data automatically removed during the compaction process.</p></blockquote>
<blockquote><p>You can change TTL value by re-insert the data with new TTL value.<br />
The actual insertion is kind of INSERT or UPDATE because it checks the previous data version and accordingly it performs the action.<br />
You can set the TTL value in both INSERT and UPDATE statements.</p></blockquote>
<blockquote><p>Automation Expiration of The Data, real-time application use like any e-commerce product is declaring different offers on products and each offer should expire at a specific time.<br />
In this kind of application, we can use the feature like the automation expiration of the Data.</p></blockquote>
<p><strong>Small demonstration:</strong></p>
<p><strong>Create a sample table:</strong></p><pre class="crayon-plain-tag">CREATE TABLE IF NOT EXISTS tbl_Employee 
(
  EmpID INT PRIMARY KEY
  ,EmpFirstName VARCHAR
  ,EmpLastName VARCHAR
  ,EmpSalary INT
);</pre><p>
<p><strong>Insert one row using TTL for 20 second:</strong><br />
After 20 seconds, data automatically will remove.</p><pre class="crayon-plain-tag">INSERT INTO tbl_Employee 
(EmpID,EmpFirstName,EmpLastName,EmpSalary)
VALUES
(1,'Anvesh','Patel',50000) USING TTL 20;</pre><p>
<p><strong>The Result:</strong></p>
<p><a href="https://www.dbrnd.com/wp-content/uploads/2016/04/NoSQLCassandraTimeToLive_TTL.png" rel="attachment wp-att-2681"><img fetchpriority="high" decoding="async" class="alignnone wp-image-2681 size-full" title="NoSQL Cassandra Time To Live TTL" src="https://www.dbrnd.com/wp-content/uploads/2016/04/NoSQLCassandraTimeToLive_TTL.png" alt="NoSQL Cassandra Time To Live TTL" width="656" height="416" srcset="https://www.dbrnd.com/wp-content/uploads/2016/04/NoSQLCassandraTimeToLive_TTL.png 656w, https://www.dbrnd.com/wp-content/uploads/2016/04/NoSQLCassandraTimeToLive_TTL-300x190.png 300w, https://www.dbrnd.com/wp-content/uploads/2016/04/NoSQLCassandraTimeToLive_TTL-150x95.png 150w" sizes="(max-width: 656px) 100vw, 656px" /></a></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
