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 10 Best Monitors for Your PC Under $100 2 10 Best Spy Apps for iPhone in 2020 3 How To Choose The Best iPad Screen Protector (With 10 Recommendations) 4 10 Best Headsets for Video Chats and Conference Calls 5 10 Best Mechanical Keyboards to Type Faster

Read Next

Advertising
Advertising
Advertising

Published on September 17, 2020

10 Best Monitors for Your PC Under $100

10 Best Monitors for Your PC Under $100

Are you looking for the best monitor under $100?

Whether you want it for your home office, editing photography, or gaming, you don’t need to spend big bucks on a display screen because a low budget one will certainly do the trick.[1]

We can almost hear you having second thoughts about the picture quality, but you don’t have to worry at all.[2]

Our list of the best monitors under $100 will be more than enough to cover you. Just go through it now, and you’ll find yourself a bargain.

Why You Should Trust Us

Our list incorporates some of the best low-budget monitors available in the market. Their efficiency and distinctive traits enable them to stand out from others.[3] The hand-picked ones below are incredibly slick and have a high refresh rate, fast response time, high resolution, and built-in speakers.

1. Acer Ultra Thin Frame Monitor

    Our first affordable computer screen is Acer’s 21.5-inch ultra-thin frame monitor. It has a refresh rate of 75Hz using an HDMI port and offers a full HD widescreen display.

    Its brightness can be maxed out at 250 nits. It has a slight tilt angle ranging from -5 to 15, as well as Radeon free sync technology.

    Advertising

    Buy this computer monitor.

    2. Sceptre Ultra-Thin Display

      Sceptre is another company that provides excellent displays for your CPU. The screen size is a little smaller at 20 inches, but it’s made up for the slightly lower price than Acer. It also comes with two HDMI ports and built-in speakers and is wall mount ready.

      Buy this computer monitor.

      3. ViewSonic LED Monitor

      best monitor

        If you want the best monitor to set up in your office or around the house, ViewSonic’s LED screen is another good option to buy. The resolution is full HD and has a broader tilt ranging from -5 to 23 degrees.

        On top of that, the product comes with a 3-year warranty. Included in the bundle are a VGA cable, monitor, power cable, and audio cable.

        Buy this computer monitor.

        Advertising

        4. ViewSonic Gaming Screen

          While we just covered a ViewSonic monitor, this one is specifically built for gaming in mind.

          Overall, this computer screen provides the same specs as the previously mentioned item. The key differences are that this one is slightly longer, comes with pre-set customizable visual modes, and offers a maxed out contrast, delivering a dynamic contrast ratio for sharp and crisp images. It also comes with a DVI cable.

          Buy this computer monitor.

          5. Asus Back Lit Monitor

          best monitor

            If you don’t mind spending a little more money, you can get an Asus Back Lit Monitor for your PC. A lot of the focus is on image quality, particularly having a strong contrast ratio and smart video technology for straight viewing. That feature also helps in reducing blue light since you’ll have more flexibility with the colors and brightness.

            Buy this computer monitor.

            6. Asus Back Lit Display

            Advertising

              Another alternative to the previous Asus monitor is this one. It has a smaller contrast ratio, though it still delivers a smooth video display. You also have aspect controls, so you can adjust its display.

              Buy this computer monitor.

              7. Dell Ultrasharp Panel Monitor

              best monitor

                If you’re looking for the basic features, look no further than Dell. There’s nothing particularly fancy about this panel screen, but it does the job well for any computer.

                Its response time is 8ms, which is typical for a monitor. It can come in either silver or black.

                Buy this computer monitor.

                8. ViewSonic Frameless Monitor

                  If you liked ViewSonic’s LED monitor but wanted a little more features, we suggest looking at their frameless display. While it boasts similar specs as the brand’s other monitors, it offers color correction and dual built-in speakers, making it ideal for office and home use. It’s also 22 inches long.

                  Advertising

                  Buy this computer monitor.

                  9. Dell Mountable LED-Lit Monitor

                    For a dependable display with a good frame rate, Dell has a mountable, LED-lit monitor in the market. It measures 18.5 inches, has an adjustable arm, and has been through rigorous testing for long-lasting reliability. You can’t go wrong with this best monitor either.

                    Buy this computer monitor.

                    10. Sceptre Monitor

                      The final screen to cover comes from Sceptre. Compared to the ultra-thin version mentioned above, this one is available in 22 inches. Beyond that, it’s your standard display that provides decent tilting at -5 to 15 degrees, wall-mounted capabilities, 5ms response time, and built-in speakers.

                      Buy this computer monitor.

                      Final Thoughts

                      Finding one of the best monitors around can be tricky. If you’re looking for an affordable one that can last for years, consider picking a computer screen from this list.

                      Featured photo credit: Sebastian Bednarek via unsplash.com

                      Reference

                      Read Next