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 11 Brain Training Apps to Train Your Mind and Improve Memory 2 40 Top Productivity Apps for iPhone (2019 Updated) 3 8 Replacements for Google Notebook 4 7 Tools to Help Keep Track of Goals and Habits Effectively 5 7 Clever Goal Tracker Apps to Make the Most of Your Business in 2019

Read Next

Advertising
Advertising
Advertising

Last Updated on July 10, 2019

11 Brain Training Apps to Train Your Mind and Improve Memory

11 Brain Training Apps to Train Your Mind and Improve Memory

Whether at work or at school, people these days are under tremendous pressure to perform, perform and perform! Stress and pressure can have adverse affects on the well-being of a person, and need to be controlled.

Now, this doesn’t mean you make a dash to your nearest therapist. There are a number of wonderful and smart apps that you can use on your phone. These brain training apps have been scientifically designed to target specific areas of the human mind and control harmful emotions such as anxiety, as well as to improve memory and sharpness of the brain.

Here are 11 iPhone apps that you will not only enjoy but also find useful in keeping your mental health balanced at all times.

1. Lumosity

This app consists of games that focus on improving the user’s memory, problem-solving capability, attention span, and thinking. There are three games in each session, and they challenge the brain by changing every time. The user has to complete the games while playing against a clock.

Free of trial. $15 per month for the full version.

Advertising

Luminosity Mind training apps-Lifehack

    2. Fit Brains Trainer

    This brain training app has 10 sets of games that work on different areas of the brain and improve memory as well as concentration. A user is required to finish a particular task from each category on a daily basis and the app tracks the progress by a color coded graph.

    Free.

    Fit Brains Trainer Mind training apps-Lifehack

      3. CogniFit Brain Fitness

      Developed with the help of neuroscientists, this fun app improves a person’s cognitive abilities, which includes memory and concentration. The progress made by the user over a period of time can be tracked. Users can also play challenge rounds with their friends. The app also modifies the difficulty level to suit the profile of the user and provide recommendations based on the results. Spending 20–30 minutes a few times every week can give measurable improvement in the performance of a user.

      First four games free, then $13 a month.

      cognifit-Mind Training Apps-Lifehack

        4. Brain Fitness Pro

        The makers of this app claim that it can improve the IQ of a user, and improve intelligence and memory. The app is fun and is user friendly, and 30 minutes a day can fetch you results in less than three weeks.

        Advertising

        Buy for $3.99.

        5. Happify

        If nothing else makes you happy in life, this app will. Well, this is what the developers claim at least. This app comes loaded with lots of quizzes, polls and gratitude journals, which work on the fundamentals of positive psychology. The app also helps to control stress and emotions to make you feel better.

        Free to use.

        Happify-Mind Training Apps-Lifehack

          6. Clockwork Brain

          You will like the little gold robot that comes in every time to explain the next game you are going to play. While the games are not much different to those offered in apps such as Luminosity, the look and feel reminds me of a workshop from old times.

          Free.

          Advertising

          Clockwork Trsin-Mind Training Apps-Lifehack

            7. ReliefLink

            Initially created as an app for suicide prevention, it has found its use as a great app for tracking the mood of the user by taking measure of all things relevant to the user’s mental health. In case the user experiences high emotional stress, the app has a coping mechanism that includes voice-recorded mindfulness, exercises and music for relaxation. There is also a map that informs the user of the nearest therapist and medical facilities for mental health treatment.

            Relief Link - Mind Training Apps - Lifehack

              8. Eidetic

              Eidetic is a memory enhancement app and uses a ‘spaced repetition’ technique to help users memorize information such as important phone numbers, words, credit card details or passwords. It also notifies you when it’s time to take a test to see what you remember, so that you retain information in your long-term memory.

              Eidetic - Mind Training Apps - Lifehack

                9. Braingle

                Braingle helps to maintain the sharpness of the brain and improve the reasoning ability of a person through riddles and optical illusions. It is different from other brain training apps that employ memory and reaction based tests. You can also compete with your friends and family members in figuring out the fun riddles.

                Free.

                Briangle- Mind Training Apps-LIfehack

                  10. Not The Hole Story

                  If you have a penchant for solving hard riddles, then this app is a must-have for you. Filled with exclusive riddles along with a simple-to-use interface, the app gives you riddles that you have to solve through a book. You will be given hints along the way, and when you give up, the answers will be revealed. This app will encourage you to broaden your thinking and put your mind to a challenging test.

                  Advertising

                  Free.

                  Not the hole story - Mind Training Apps - Lifehack

                    11. Personal Zen

                    This fun brain training app follows the journey of two animated characters who travel through a field of grass. Personal Zen is a nice app meant for reducing anxiety and trains the brain to focus on the positive aspects. The developer’s advice is to use the app for 10 minutes a day to see the best results.

                    Free.

                    personal zen- mind training apps - lifehack

                      Featured photo credit: NeONBRAND via unsplash.com

                      Read Next