<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[dba tuning - Medium]]></title>
        <description><![CDATA[SQL tuning is an extensive topic in itself that deserves coverage in books dedicated to stored programming. This is because it is considered as a vital skill for those who create stored programs in MySQL or Oracle. - Medium]]></description>
        <link>https://medium.com/dba-tuning?source=rss----f7476877fae4---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>dba tuning - Medium</title>
            <link>https://medium.com/dba-tuning?source=rss----f7476877fae4---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 20:52:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/dba-tuning" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[4 Major SQL Performance Tuning Tips & Tricks for DBAs]]></title>
            <link>https://medium.com/dba-tuning/4-major-sql-performance-tuning-tips-tricks-for-dbas-33c318653f1d?source=rss----f7476877fae4---4</link>
            <guid isPermaLink="false">https://medium.com/p/33c318653f1d</guid>
            <category><![CDATA[sql-server]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Tosska Technologies]]></dc:creator>
            <pubDate>Fri, 22 Jan 2021 10:45:05 GMT</pubDate>
            <atom:updated>2021-01-22T10:45:05.855Z</atom:updated>
            <content:encoded><![CDATA[<p>Identifying bad statements and fixing performance issues can take several hours or even days of going through and testing. Many times, we can substantially decrease that time by locating common design trends that indicate badly performing SQL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*PNdZv529otccK5-df3Em9g.jpeg" /><figcaption><a href="https://tosska.com/">SQL Performance Tuning</a></figcaption></figure><p>Developing an eye for such discrepancies that are already quite simple to spot can quickly bring the focus to the actual problem areas. Although <a href="https://tosska.com/"><strong><em>SQL performance tuning</em></strong></a> can typically lead to hours of accumulating data regarding incidents, traces, execution plans, and stats, being able to determine potential obstacles can save a lot more time and save you from all that work.</p><p>Oracle SQL Query Performance Tuning: Important Tips &amp; Tricks</p><p>The following suggestions should help cut down your SQL performance tuning work substantially -</p><p>● OR Vs. WHERE Clause</p><p>The WHERE clause is generally used to filter data sets through the use of indexes; such queries help reduce the size of the data set repeatedly because of exclusivity, until the result set is achieved.</p><p>On the other hand, OR is inclusive, which means SQL Server can’t complete its execution in one go. Every section is assessed separately instead, proving more expensive. Once it’s completed, the results are stringed together and returned as a single result.</p><p>The worst case scenario in terms of the OR clause is when it’s applied on several tables or columns. In such cases, it is better to get rid of the clause entirely. If that isn’t possible, you may try to divide the query into smaller queries.</p><p>● Wildcard String Searches</p><p>SQL Server is not good when it comes to fuzzy string searching. Additionally, there are fewer ways to conduct string search efficiently than inefficiently, which can prove a challenge. Therefore, we need to make sure about a few things for frequently searched string columns:</p><p>● Such columns have indexes that can be used</p><p>● If they cannot be used, then there should be full-text indexes that can be used instead</p><p>● If there aren’t any full-text indexes, there need to be hashes, n-grams or other ways to address this issue.</p><p>● Big Write Operations</p><p>Although large write operations aren’t necessarily a performance issue, their effects should be known among DBAs and users so that they can prevent difficulties during necessary maintenance events or releases.</p><p>Common activities that may lead to big writes are:</p><p>● Placing a new column in a table; backfilling it throughout the whole table.</p><p>● Updating columns over the entire table.</p><p>● Altering column data types.</p><p>● Importing huge amounts of new data.</p><p>● Archiving or eliminating huge amounts of old data.</p><p>● Indexes</p><p>It is necessary to keep in mind that indexes need to be maintained regularly, or they can become the reason your database requires <a href="https://tosska.com/"><strong>Oracle SQL performance tuning</strong></a>. Just make sure you avoid any of the following errors:</p><ol><li>Using too many indexes</li></ol><p>A table with excessive indexes results in sluggish performance. This is because each manipulation query that requires access to an indexed column will also need to update the indexes on it. Also, indexes need space on storage and in database backups, and excess indexes mean a waste of space.</p><ol><li>Using too few indexes</li></ol><p>If there aren’t enough indexes, the table cannot serve read queries productively. This issue is commonly found during <strong>query performance tuning</strong> for tables with zero or few non-clustered indexes. The solution: add more indexes as needed!</p><ol><li>Lack of Clustered Index/Primary Keys</li></ol><p>Every table must have a clustered index and a primary key because clustered indexes nearly always work better than heaps. Not only this, but they will also offer the required architecture to insert non-clustered indexes productively when needed.</p><p>A primary key gives useful data to the query optimizer that enables it to make intelligent decisions when developing execution plans. In case you locate a table that doesn’t have a primary key and/or a clustered index, consider these top preferences to study the issues and resolve them before carrying on with further research.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33c318653f1d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dba-tuning/4-major-sql-performance-tuning-tips-tricks-for-dbas-33c318653f1d">4 Major SQL Performance Tuning Tips &amp; Tricks for DBAs</a> was originally published in <a href="https://medium.com/dba-tuning">dba tuning</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>