Database Research & Development

  • Home
  • NoSQL
    • NoSQL
    • Cassandra
  • Databases
    • Database Theory
    • Database Designing
    • SQL Server Coding Standards
    • SQL Server
    • PostgreSQL
    • MySQL
    • Greenplum
    • Linux
  • Interviews
    • SQL Server Interviews
    • MySQL Interviews
    • SQL Puzzles
  • DBA Scripts
    • SQL Server DBA Scripts
    • PostgreSQL DBA Scripts
    • MySQL DBA Scripts
    • Greenplum DBA Scripts
  • Home
  • Blog Archives !
  • (: Laugh@dbrnd :)
  • Contact Me !
sqlserverinterviews
Home 2018 March SQL Server: Optimize the Performance of TempDB

SQL Server: Optimize the Performance of TempDB

SQL RAM Performance

This article is half-done without your Comment! *** Please share your thoughts via Comment ***

The Database Administrator must know something about the best configuration of TempDB.
A general advice is, try to avoid the use of TempDB by creating temp tables.

But TempDB also stores other information related to query execution, internal sort operation, overflow memory data.

You should keep your eye open for TempDB otherwise it degrades the overall performance.

SQL Server: The TempDB is Full, Shrink it or Move it

Sharing few tips to improve the TempDB performance:

Try to keep TempDB in local drive:

You should store TempDB in your local SSD drive instead of the shared network drive. This introduced by SQL Server 2012.

If you store other databases in shared network drive and TempDB in local drive, It creates a separate path for IO which divides the traffic and improves the performance.

Should configure multiple DATA Files:

You should create more data files equal to 1/2 or 1/4 the physical CPUs.

Once you have attached different data files to it, it stripped the files and performed the parallel operations.
Now It has its own PFS, GAM, and SGAM pages, so it spreads the writing process which improves the writing performance.

Few other tips:

  • Set the recovery model of tempdb to SIMPLE.
  • Allow for tempdb files to automatically grow as required.
  • Set preallocate space for all tempdb files and it prevents tempdb from expanding too frequently.
  • Make each data file the same size.
Mar 9, 2018Anvesh Patel
SQL Server Interview: Difference between Sequence Object and Identity ColumnSQL Server Interview: Primary Key Column as Non Clustered Index, Non Primary Key Column as Clustered Index
Comments: 1
  1. Aasheesh Jain
    June 19, 2019 at 3:25 pm

    can you please let us know the complete memory architecture in sql server and want to know memory leakage , also how to identify other running process like java any other except SQL which consuming memory what is the solution ,how to identify how much memory we need to increase in sql server .can any one share any document feedback /solution
    regards
    Aasheesh Jain/8860175665/comeonaasheesh@gmail.com

    ReplyCancel

Leave a Reply Cancel reply

CAPTCHA
Refresh

*

Anvesh Patel
Anvesh Patel

Database Engineer

ImageMarch 9, 2018 1 Comment SQL ServerAnvesh Patel, database, database research and development, dbrnd, Multiple data files, SQL Query, SQL Server, SQL Server Administrator, SQL Server Monitoring, SQL Server Performance Tunning, SQL Server Tips and Tricks, Temp Table, TempDB, TempDB Performance, TSQL
About Me!

I'm Anvesh Patel, a Database Engineer certified by Oracle and IBM. I'm working as a Database Architect, Database Optimizer, Database Administrator, Database Developer. Providing the best articles and solutions for different problems in the best manner through my blogs is my passion. I have more than six years of experience with various RDBMS products like MSSQL Server, PostgreSQL, MySQL, Greenplum and currently learning and doing research on BIGData and NoSQL technology. -- Hyderabad, India.

About DBRND !

dbrnd

This is a personal blog (www.dbrnd.com).

Any views or opinions represented in this blog are personal and belong solely to the blog owner and do not represent those of people, institutions or organizations that the owner may or may not be associated with in professional or personal capacity, unless explicitly stated.

Feel free to challenge me, disagree with me, or tell me I’m completely nuts in the comments section of each blog entry, but I reserve the right to delete any comment for any reason whatsoever (abusive, profane, rude, or anonymous comments) - so keep it polite.

The content of this website is protected by copyright. No portion of this website may be copied or replicated in any form without the written consent of the website owner.

Recent Comments !
  • Anvesh Patel { Sure will do... } – May 27, 12:43 PM
  • Anvesh Patel { Great... } – May 27, 12:41 PM
  • Anvesh Patel { Great... } – May 27, 12:39 PM
  • Anvesh Patel { Great... } – May 27, 12:36 PM
  • Anvesh Patel { Great... } – May 27, 12:28 PM
  • Anvesh Patel { Great... } – May 27, 12:27 PM
  • Anvesh Patel { Great... } – May 27, 12:16 PM
  • Older »
Follow Me !
  • facebook
  • linkedin
  • twitter
  • youtube
  • google
  • flickr
© 2015 – 2019 All rights reserved. Database Research & Development (dbrnd.com)
Posting....