<?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>PHP My SQL development &gt; Metasys Software Pvt Ltd.</title>
	<atom:link href="https://www.metasyssoftware.com/tag/php-my-sql-development/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.metasyssoftware.com</link>
	<description>Unique People, Unique Solutions</description>
	<lastBuildDate>Fri, 07 Jun 2024 11:49:00 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.metasyssoftware.com/wp-content/uploads/2023/10/metasys-svg-.png</url>
	<title>PHP My SQL development &gt; Metasys Software Pvt Ltd.</title>
	<link>https://www.metasyssoftware.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Data Partitioning</title>
		<link>https://www.metasyssoftware.com/others/data-partitioning/</link>
					<comments>https://www.metasyssoftware.com/others/data-partitioning/#respond</comments>
		
		<dc:creator><![CDATA[meta_prasad]]></dc:creator>
		<pubDate>Mon, 13 Apr 2020 13:16:22 +0000</pubDate>
				<category><![CDATA[Others]]></category>
		<category><![CDATA[data partioning]]></category>
		<category><![CDATA[PHP webservice]]></category>
		<category><![CDATA[PHP My SQL development]]></category>
		<category><![CDATA[Cake PHP web development]]></category>
		<category><![CDATA[Enterprise app development]]></category>
		<category><![CDATA[web app development]]></category>
		<guid isPermaLink="false">https://www.metasyssoftware.com/?p=3017</guid>

					<description><![CDATA[<p>Database Performance Optimization through Data Partitioning Improving database performance is a challenging task that developers need to pay attention to [&#8230;]</p>
The post <a href="https://www.metasyssoftware.com/others/data-partitioning/">Data Partitioning</a> appeared first on <a href="https://www.metasyssoftware.com">Metasys Software Pvt Ltd.</a>.]]></description>
										<content:encoded><![CDATA[<p><strong>Database Performance Optimization through Data Partitioning</strong></p>
<p>Improving database performance is a challenging task that developers need to pay attention to in order to reduce the response time for the users. In this article, I am sharing a technique for Database Performance Optimization using Data Partitioning.</p>
<p><strong>What is Data Partitioning? </strong></p>
<p>Data Partitioning refers to the database process of dividing large tables into smaller parts by  Rows and Columns. A major benefit of Data Partitioning is that one only needs to specify the partitioning criteria, and then SQL handles the data by itself.</p>
<p>SQL uses multiple .ndf files (Secondary Database Files), in addition to the .mdf file (Primary Database File) to divide and store data based on the partition criteria. The user needs to specify those .ndf files and provide the partition criteria by using Partition Schemes and Functions. SQL Server then takes care of data maintenance by itself.</p>
<p><strong>Data Partitioning can be divided into two categories:</strong></p>
<ol>
<li><strong>Vertical Partitioning: </strong>In vertical partitioning, data is divided column-wise. For example, if  a database contains a table with 10 columns of which only 5 columns are used frequently, it can be divided into two tables with 5 columns each. This way a table is made more efficient, by dividing it into multiple filegroups based on columns.</li>
<li><strong>Horizontal Partitioning: </strong>In horizontal partitioning, data is divided row-wise. For example, suppose there is a table with 1 lakh of records for the period 2011 – 2019, where each record includes a date. Quite often it is only necessary to access the records for last year, i.e. 2019 or recent years -2017,2018. Through horizontal partitioning, the data can be divided into yearly records in multiple filegroups.</li>
</ol>
<p>By using these Data Partitioning techniques, we can enhance the performance of our database. This is a highly recommended technique for applications where Reporting is frequently used.</p>
<p><strong>Worked example:</strong></p>
<p>We have a table called tbl Data Partitioning with approximately 2.5 crore records. The data includes records from 2011 to 2014, of which the 2014 records are 45 lakhs. The Table looks like:</p>
<p><img fetchpriority="high" decoding="async" class="alignnone wp-image-3018 size-full" title="worked example " src="https://www.metasyssoftware.com/wp-content/uploads/worked-example-.png" alt="worked example" width="600" height="327" /></p>
<p>To execute a select query to find the 2014 records takes almost 23 seconds.</p>
<p><img decoding="async" class="alignnone wp-image-3019 size-full" title="image 2" src="https://www.metasyssoftware.com/wp-content/uploads/Image-2-1.png" alt="image 2" width="839" height="94" /></p>
<p>Using Horizontal Data Partitioning on the table using Created Date, the time can be significantly reduced.</p>
<p><img decoding="async" class="alignnone wp-image-3020 size-full" title="horizontal data partitioning" src="https://www.metasyssoftware.com/wp-content/uploads/horizontal-data-partitioning-.png" alt="horizontal data partitioning" width="963" height="460" /></p>
<p>For that, we first need to specify the filegroups:</p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-3021 size-full" title="file groups " src="https://www.metasyssoftware.com/wp-content/uploads/file-groups-.png" alt="file groups" width="963" height="479" /></p>
<p>&nbsp;</p>
<p>After creating Partition Functions and Schemes, we can map the partitions to filegroups.</p>
<p>Finally, After implementing Data partitioning, the time taken by the Select query is reduced from 23 seconds to 15 seconds:</p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-3022 size-full" title="Image 5" src="https://www.metasyssoftware.com/wp-content/uploads/image-5.png" alt="Image 5" width="720" height="60" /></p>
<p><strong>Advantages of Data Partitioning:</strong></p>
<ol>
<li>Improves performance for larger tables.</li>
<li>Fast and expensive storage can be used for active data filegroups, while keeping the less active data filegroups on slower/less expensive storage.</li>
<li>Partial backup and restoration is possible.</li>
<li>Can be used temporarily as a substitute for data archiving.</li>
</ol>
<p>Our team has experience of working on <strong>PHP MySQL development</strong> projects and has handled many assignments from small informational website to robust enterprise applications. For more information https://www.metasyssoftware.com/php-mysql</p>The post <a href="https://www.metasyssoftware.com/others/data-partitioning/">Data Partitioning</a> appeared first on <a href="https://www.metasyssoftware.com">Metasys Software Pvt Ltd.</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.metasyssoftware.com/others/data-partitioning/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
