Advertising
Advertising

10 SQL Server Performance Tuning Tips to Make Your Database Soar

10 SQL Server Performance Tuning Tips to Make Your Database Soar

Regular maintenance and upgrades are an essential parts of ensuring that databases and servers maintain their usability. Many common practices come with a high price and low results, and many developers have begun using alternative methods to improve the performance of their server.

Query tuning can fix queries that have been poorly written and indexes that are not efficient. Use these 10 tips to improve your database in a snap.

1. Separate Data and Log Files

This practice is often overlooked for no good reason. The data and log files should be separated into different physical drives arrays whenever possible, especially when using DAS or SAN. The purpose is to separate the random access of data from sequential access, that happens when writing transaction logs.

Advertising

Sometimes, drives are carved from the same larger disk array rather than different physical drives, which defeats the purpose of separating them.

2. Limited Data Selection

A query will run faster when there is less data to be retrieved. Do as much filtering that you can on the server’s end. Less data will be sent and results can be seen faster. For example, even the smallest changes like removing the term “City” from “New York City” will improve the SQL server performance.

3. Don’t Shrink the Data Files

Shrinking data files is a bad practice in general and can impact performance in a few ways, including fragmentation and causing the queries to suffer. If Instant File Initialization isn’t turned on, the resulting growth can negatively impact performance and cause timeouts. There may be times when shrinking data files is needed, but be sure to know the impact before you take action on it.

Advertising

4. Database Statistics

An optimizer will analyze the statistics and choose the least expensive path, in order to satisfy a query. Statistics that are outdated or missing will cause a prolonged response time because the path chosen will be less optimized.

5. Predetermine the Expected Growth

You can minimize the negative effect of indexes by specifying the appropriate fill factor value when indexing. When the value of a table is changed, the database has to reorganize the data stored to account for the new rows. If you are expecting regular additions of new rows, you can specify this growth for an index.

6. Alter the MAX Memory Limit

64-bit versions of SQL Servers have seen recent improvements in terms of allocating memory and sharing with an operating system, but leaving the MAX memory setting at default is not ideal.

Advertising

You should set the MAX memory setting at a minimum of 1 or 2GB less than the total amount of memory on the server. How much memory you leave will depend on the programs that you have running and how much memory those require.

7. Stick With Single Changes

Rather than making many changes at one time and risking the effectiveness of your query, aim to find the most expensive queries and then adjust the query based on this. Making small changes one at a time will more likely produce optimal results.

8. Before Loading Data, Drop Indexes

This will aid the insert statement in running faster. Once the inserts are done, you can remake the index. Use a temporary table to load data if you are going to insert thousands of rows in a system. Moving data from one table to another is much quicker than loading it from an external source.

Advertising

9. Utilizing Constraints

Advanced query analysis can benefit from knowing and using constraints. Avoid overlapping or duplicating indexes by reviewing existing indexes, keys and constraints. Information for existing indexes can be accessed by running sp_helindex.

10. Extra Columns

When there are extra columns within the database, the system will perform poorly. This is because, it becomes increasingly difficult for the execution of the process to use specific operations of the index. To find any additional columns, use the SELECT* or scalar functions to closely examine the query.

More by this author

Sasha Brown

Seasoned Blogger

11 Obvious Signs He Wants to Marry You 11 Signs He Wants to Marry You (Even You Are at the Early Stages) 11 Must-Follow Natural Health Blogs for 2017 11 Must-Follow Natural Health Blogs for 2017 11 Tools to Help You Keep Track of Your Remote Employees 11 Tools to Help You Keep Track of Your Remote Employees 7 Ways to Effectively Cope With Emotional Stress Seven Ways to Effectively Cope with Emotional Stress 10 amazon review sites that will get you really good deals 10 Amazon Review Sites That Will Get You Really Good Deals

Trending in Technology

1 8 Replacements for Google Notebook 2 7 Tools to Help Keep Track of Goals and Habits Effectively 3 7 Clever Goal Tracker Apps to Make the Most of Your Business in 2019 4 10 Smartest Productivity Software to Improve Your Work Performance 5 18 Best Time Management Apps and Tools (2019 Updated)

Read Next

Advertising
Advertising
Advertising

Last Updated on May 14, 2019

8 Replacements for Google Notebook

8 Replacements for Google Notebook

Exploring alternatives to Google Notebook? There are more than a few ‘notebooks’ available online these days, although choosing the right one will likely depend on just what you use Google Notebook for.

  1. Zoho Notebook
    If you want to stick with something as close to Google Notebook as possible, Zoho Notebook may just be your best bet. The user interface has some significant changes, but in general, Zoho Notebook has pretty similar features. There is even a Firefox plugin that allows you to highlight content and drop it into your Notebook. You can go a bit further, though, dropping in any spreadsheets or documents you have in Zoho, as well as some applications and all websites — to the point that you can control a desktop remotely if you pare it with something like Zoho Meeting.
  2. Evernote
    The features that Evernote brings to the table are pretty great. In addition to allowing you to capture parts of a website, Evernote has a desktop search tool mobil versions (iPhone and Windows Mobile). It even has an API, if you’ve got any features in mind not currently available. Evernote offers 40 MB for free accounts — if you’ll need more, the premium version is priced at $5 per month or $45 per year. Encryption, size and whether you’ll see ads seem to be the main differences between the free and premium versions.
  3. Net Notes
    If the major allure for Google Notebooks lays in the Firefox extension, Net Notes might be a good alternative. It’s a Firefox extension that allows you to save notes on websites in your bookmarks. You can toggle the Net Notes sidebar and access your notes as you browse. You can also tag websites. Net Notes works with Mozilla Weave if you need to access your notes from multiple computers.
  4. i-Lighter
    You can highlight and save information from any website while you’re browsing with i-Lighter. You can also add notes to your i-Lighted information, as well as email it or send the information to be posted to your blog or Twitter account. Your notes are saved in a notebook on your computer — but they’re also synchronized to the iLighter website. You can log in to the site from any computer.
  5. Clipmarks
    For those browsers interested in sharing what they find with others, Clipmarks provides a tool to select clips of text, images and video and share them with friends. You can easily syndicate your finds to a whole list of sites such as Facebook, Twitter and Digg. You can also easily review your past clips and use them as references through Clipmarks’ website.
  6. UberNote
    If you can think of a way to send notes to UberNote, it can handle it. You can clip material while browsing, email, IM, text message or even visit the UberNote sites to add notes to the information you have saved. You can organize your notes, tag them and even add checkboxes if you want to turn a note into some sort of task list. You can drag and drop information between notes in order to manage them.
  7. iLeonardo
    iLeonardo treats research as a social concern. You can create a notebook on iLeonardo on a particular topic, collecting information online. You can also access other people’s notebooks. It may not necessarily take the place of Google Notebook — I’m pretty sure my notes on some subjects are cryptic — but it’s a pretty cool tool. You can keep notebooks private if you like the interface but don’t want to share a particular project. iLeonardo does allow you to follow fellow notetakers and receive the information they find on a particular topic.
  8. Zotero
    Another Firefox extension, Zotero started life as a citation management tool targeted towards academic researchers. However, it offers notetaking tools, as well as a way to save files to your notebook. If you do a lot of writing in Microsoft Word or Open Office, Zotero might be the tool for you — it’s integrated with both word processing software to allow you to easily move your notes over, as well as several blogging options. Zotero’s interface is also available in more than 30 languages.

I’ve been relying on Google Notebook as a catch-all for blog post ideas — being able to just highlight information and save it is a great tool for a blogger.

Advertising

In replacing it, though, I’m starting to lean towards Evernote. I’ve found it handles pretty much everything I want, especially with the voice recording feature. I’m planning to keep trying things out for a while yet — I’m sticking with Google Notebook until the Firefox extension quits working — and if you have any recommendations that I missed when I put together this list, I’d love to hear them — just leave a comment!

Advertising

Advertising

Read Next