<?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>Consistency &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/consistency/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>Mon, 24 Jun 2019 19:39:56 +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>Database Theory: What is CAP theorem &#8211; Consistency, Availability, Partition</title>
		<link>https://www.dbrnd.com/2019/07/database-theory-what-is-cap-theorem-consistency-availability-partition/</link>
					<comments>https://www.dbrnd.com/2019/07/database-theory-what-is-cap-theorem-consistency-availability-partition/#respond</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Mon, 08 Jul 2019 16:16:42 +0000</pubDate>
				<category><![CDATA[Database Theory]]></category>
		<category><![CDATA[ACID Properties]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[Availability]]></category>
		<category><![CDATA[CAP theorem]]></category>
		<category><![CDATA[Consistency]]></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[Partition]]></category>
		<category><![CDATA[RDBMS]]></category>
		<category><![CDATA[transaction]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=3915</guid>

					<description><![CDATA[We all are aware about the ACID Properties of Database System (Atomicity, Consistency, Isolation, Durability). If you don&#8217;t know about the ACID, please visit below article. ACID Properties in Database System (Atomicity, Consistency, Isolation, Durability) In last one decade, lots of new Database Products available in the Market. The types are: RDBMS Products, NoSQL Products, [&#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%2F2019%2F07%2Fdatabase-theory-what-is-cap-theorem-consistency-availability-partition%2F&amp;linkname=Database%20Theory%3A%20What%20is%20CAP%20theorem%20%E2%80%93%20Consistency%2C%20Availability%2C%20Partition" 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%2F2019%2F07%2Fdatabase-theory-what-is-cap-theorem-consistency-availability-partition%2F&amp;linkname=Database%20Theory%3A%20What%20is%20CAP%20theorem%20%E2%80%93%20Consistency%2C%20Availability%2C%20Partition" 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%2F2019%2F07%2Fdatabase-theory-what-is-cap-theorem-consistency-availability-partition%2F&amp;linkname=Database%20Theory%3A%20What%20is%20CAP%20theorem%20%E2%80%93%20Consistency%2C%20Availability%2C%20Partition" 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%2F2019%2F07%2Fdatabase-theory-what-is-cap-theorem-consistency-availability-partition%2F&amp;linkname=Database%20Theory%3A%20What%20is%20CAP%20theorem%20%E2%80%93%20Consistency%2C%20Availability%2C%20Partition" 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%2F2019%2F07%2Fdatabase-theory-what-is-cap-theorem-consistency-availability-partition%2F&amp;linkname=Database%20Theory%3A%20What%20is%20CAP%20theorem%20%E2%80%93%20Consistency%2C%20Availability%2C%20Partition" 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%2F2019%2F07%2Fdatabase-theory-what-is-cap-theorem-consistency-availability-partition%2F&amp;linkname=Database%20Theory%3A%20What%20is%20CAP%20theorem%20%E2%80%93%20Consistency%2C%20Availability%2C%20Partition" 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%2F2019%2F07%2Fdatabase-theory-what-is-cap-theorem-consistency-availability-partition%2F&#038;title=Database%20Theory%3A%20What%20is%20CAP%20theorem%20%E2%80%93%20Consistency%2C%20Availability%2C%20Partition" data-a2a-url="https://www.dbrnd.com/2019/07/database-theory-what-is-cap-theorem-consistency-availability-partition/" data-a2a-title="Database Theory: What is CAP theorem – Consistency, Availability, Partition"></a></p><p>We all are aware about the ACID Properties of Database System (Atomicity, Consistency, Isolation, Durability).<br />
If you don&#8217;t know about the ACID, please visit below article.</p>
<blockquote class="wp-embedded-content" data-secret="aJi5vV3iRV"><p><a href="https://www.dbrnd.com/2015/05/acid-properties-in-database-system/">ACID Properties in Database System (Atomicity, Consistency, Isolation, Durability)</a></p></blockquote>
<p><iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  src="https://www.dbrnd.com/2015/05/acid-properties-in-database-system/embed/#?secret=aJi5vV3iRV" data-secret="aJi5vV3iRV" width="600" height="338" title="&#8220;ACID Properties in Database System (Atomicity, Consistency, Isolation, Durability)&#8221; &#8212; Database Research &amp; Development" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></p>
<blockquote><p>In last one decade, lots of new Database Products available in the Market. The types are: RDBMS Products, NoSQL Products, BIGDATA, MPP Products.</p></blockquote>
<p><strong>My Question is, how do you choose best database product for your project?</strong></p>
<blockquote><p>Traditional Answer, The first preference of Database Designer would be ACID Properties oriented Databases.</p></blockquote>
<blockquote><p>But most of the NoSQL Databases are not providing full support of ACID Properties, then also NoSQL Databases are popular and People are using it for different purposes.</p></blockquote>
<blockquote><p>Because most of the NoSQL Databases are not ACID oriented, but they are CAP oriented.</p></blockquote>
<p><strong>What is CAP theorem (Consistency, Availability, Partition)?</strong></p>
<blockquote><p>CAP Published by Eric Brewer in 2000, the theorem is a set of basic requirements that describe any distributed system like: NoSQL Cassandra, MongoDB, CouchDB.</p>
<p><img fetchpriority="high" decoding="async" class="alignright wp-image-3920 size-medium" title="CAP_ConsistencyAvailabilityPartition" src="https://www.dbrnd.com/wp-content/uploads/2016/11/CAP-Theory-254x300.jpg" alt="cap-theory" width="254" height="300" srcset="https://www.dbrnd.com/wp-content/uploads/2016/11/CAP-Theory-254x300.jpg 254w, https://www.dbrnd.com/wp-content/uploads/2016/11/CAP-Theory-750x886.jpg 750w, https://www.dbrnd.com/wp-content/uploads/2016/11/CAP-Theory-150x177.jpg 150w, https://www.dbrnd.com/wp-content/uploads/2016/11/CAP-Theory.jpg 768w" sizes="(max-width: 254px) 100vw, 254px" /></p></blockquote>
<p><strong>Consistency:</strong></p>
<blockquote><p>All nodes can see the same data at the same time. The data are the same across the cluster, so you can read or write any node.</p></blockquote>
<blockquote><p>Each transaction start and end in consistent stats so that all nodes can access the same data. Actually, It is achieved by update all nodes before reading.</p></blockquote>
<p><strong>Availability:</strong></p>
<blockquote><p>Here, The meaning of Availability is to access cluster in any situation like: server goes down, server delay. The system should always respond to a request, even if data is not in sync or inconsistent state, It prints the message like &#8220;This cluster data are not updated&#8221;.</p></blockquote>
<p><strong>Partition:</strong></p>
<blockquote><p>Here, the meaning of Partition is to avoid any type of system failure and system should run with available nodes or data. It does not allow any single point of failure because data replicated across all the clusters.</p></blockquote>
<blockquote><p>The Partition can work with Consistency (CP) or can work with Availability (AP) means, you can never find any Database System which follows the full CAP theorem.</p></blockquote>
<p><strong>Storage System with Partition and Consistency (CP):</strong><br />
Redis, MongoDB, AppFabric Caching, and MemcacheDB.<br />
<strong>Storage System with Partition and Availability (AP):</strong><br />
Cassandra, DynamoDB, and CouchDB.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2019/07/database-theory-what-is-cap-theorem-consistency-availability-partition/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>ACID Properties in Database System (Atomicity, Consistency, Isolation, Durability)</title>
		<link>https://www.dbrnd.com/2015/05/acid-properties-in-database-system/</link>
					<comments>https://www.dbrnd.com/2015/05/acid-properties-in-database-system/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Fri, 01 May 2015 11:48:54 +0000</pubDate>
				<category><![CDATA[Database Theory]]></category>
		<category><![CDATA[ACID PropertiesAnvesh Patel]]></category>
		<category><![CDATA[Atomicity]]></category>
		<category><![CDATA[Consistency]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database concept]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[database standards]]></category>
		<category><![CDATA[Durability]]></category>
		<category><![CDATA[Isolation]]></category>
		<category><![CDATA[RDBMS]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=14</guid>

					<description><![CDATA[Database ACID Properties: ACID properties are an ancient and valuable concept of database theory. I know that you can find lots of posts about this topic, but still, I would like to start my journey with this subject as one of very important and my favourite theory of Database system. Database System plays with lots [&#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%2F05%2Facid-properties-in-database-system%2F&amp;linkname=ACID%20Properties%20in%20Database%20System%20%28Atomicity%2C%20Consistency%2C%20Isolation%2C%20Durability%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%2F2015%2F05%2Facid-properties-in-database-system%2F&amp;linkname=ACID%20Properties%20in%20Database%20System%20%28Atomicity%2C%20Consistency%2C%20Isolation%2C%20Durability%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%2F2015%2F05%2Facid-properties-in-database-system%2F&amp;linkname=ACID%20Properties%20in%20Database%20System%20%28Atomicity%2C%20Consistency%2C%20Isolation%2C%20Durability%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%2F2015%2F05%2Facid-properties-in-database-system%2F&amp;linkname=ACID%20Properties%20in%20Database%20System%20%28Atomicity%2C%20Consistency%2C%20Isolation%2C%20Durability%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%2F2015%2F05%2Facid-properties-in-database-system%2F&amp;linkname=ACID%20Properties%20in%20Database%20System%20%28Atomicity%2C%20Consistency%2C%20Isolation%2C%20Durability%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%2F2015%2F05%2Facid-properties-in-database-system%2F&amp;linkname=ACID%20Properties%20in%20Database%20System%20%28Atomicity%2C%20Consistency%2C%20Isolation%2C%20Durability%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%2F2015%2F05%2Facid-properties-in-database-system%2F&#038;title=ACID%20Properties%20in%20Database%20System%20%28Atomicity%2C%20Consistency%2C%20Isolation%2C%20Durability%29" data-a2a-url="https://www.dbrnd.com/2015/05/acid-properties-in-database-system/" data-a2a-title="ACID Properties in Database System (Atomicity, Consistency, Isolation, Durability)"></a></p><p><strong><u>Database ACID Properties:</u></strong></p>
<p>ACID properties are an ancient and valuable concept of database theory. I know that you can find lots of posts about this topic, but still, I would like to start my journey with this subject as one of very important and my favourite theory of Database system.</p>
<p>Database System plays with lots of different types of transactions where all transaction has a particular characteristic. This characteristic is known ACID Properties.</p>
<blockquote><p>ACID Properties take grantee for all database transactions to accomplish all tasks.</p></blockquote>
<p><u>Many times interviewers ask this question in an interview that, What is ACID Property in database?</u></p>
<p>Here I am going to explain with a simple example.</p>
<p>A = Atomicity</p>
<p>C = Consistency</p>
<p>I = Isolation</p>
<p>D = Durability</p>
<p><strong>First, </strong></p>
<p><strong>Atomicity:</strong> means either all or none, for example,</p>
<blockquote><p>One Application is going to insert 30 records in one transaction. During this insertion, any problem occurs, and at this point, only 12 records have processed. In this state transaction is not going to insert only 12 records it will roll back this whole transaction, so this will process either all or none.</p></blockquote>
<p><strong>Consistency:</strong> means to bring database from one valid state to another valid state. </p>
<blockquote><p>There should be always defined some data rule, constraint, trigger at database end as well as application end.</p>
<p>Whatever data is going to insert they all should be validated by setting rules and ensure that there are no invalid data is going to insert in the database so this way it will manage consistency of the database.<br />
In any case running transaction violate rule at that same time entire transaction will be rollback.</p></blockquote>
<p><strong>Isolation:</strong> means each transaction is unaware of another transaction.</p>
<blockquote><p>One shop seller is selling items very fast, and the stock is also decreasing. At the same time, another person is also adding a new item in the stock. </p>
<p>Here, this both transactions is different and unaware of each other. </p>
<p>Isolation level ensures that one transaction is not interrupted by another transaction. </p>
<p>For database transaction, this one of the important properties because any database system is going with lots of concurrent and parallel transactions where Isolation property is very much required and ensure that all transactions are defined under proper isolation level. </p>
<p>A different database technology has different type of default Isolation level like,</p>
<p>Oracle has READ_COMMITTED</p>
<p>MySQL has REPETABLE_READ</p>
<p>MSSQL has READ_COMMITTED</p>
<p>PostgreSQL has READ_COMMITTED</p>
<p>DB2 has READ_COMMITTED</p>
<p>Read_committed Isolation level is most preferable, but many times it&#8217;s also required to show READ_UNCOMMITTED data in a data history kind of pages.</p></blockquote>
<p><strong>Durability:</strong> means to keep committed data forever.</p>
<blockquote><p>Application inserted 30 records in one transaction, and this transaction is completed and committed successfully in the database that means records persist forever in the database until and unless it&#8217;s not deleted by any application users or database users.</p>
</blockquote>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2015/05/acid-properties-in-database-system/feed/</wfw:commentRss>
			<slash:comments>11</slash:comments>
		
		
			</item>
	</channel>
</rss>
