adding a 2nd Tempdb file.

  • Hi

    I am considering adding a secondary tempdb file to my datawarehouse to hopefully improve performance. I am aware that I have to size this secondary file to the same size of the primary file so i get proportional fill going on.

    when i run a query to get the current size of the tempdb file it returns 40159.50mb / percent used 0.02 and templog is 250mb /percent used 41.61

    When i view tempdb via ssms and click properties then look at the files from there it says "Initial size 22669 mb" autogrow by 10% unrestricted.

    So what size should my new secondary be ? the size returned by the query or the size returned by the /properties files view in ssms

    Also am i correct in saying i dont need to create a transaction log file for this new tempdb file ?

  • PearlJammer1 (5/1/2013)


    Hi

    I am considering adding a secondary tempdb file to my datawarehouse to hopefully improve performance. I am aware that I have to size this secondary file to the same size of the primary file so i get proportional fill going on.

    when i run a query to get the current size of the tempdb file it returns 40159.50mb / percent used 0.02 and templog is 250mb /percent used 41.61

    When i view tempdb via ssms and click properties then look at the files from there it says "Initial size 22669 mb" autogrow by 10% unrestricted.

    So what size should my new secondary be ? the size returned by the query or the size returned by the /properties files view in ssms

    Also am i correct in saying i dont need to create a transaction log file for this new tempdb file ?

    the size returned by the query - well sort of. SSMS returns the initial size, i.e. the size it is created at on restart, it does not record any file growth. the query returns its current size but of course it wont be that size on restart.

    as you now know your tempdb grows to 40GB or so (presuming SQL has been running for a while), ideally restart SQL, immediately grow the first data file to 20GB, then add a second of the same size. Increase the log to 250mb. Set autogrow to sensible MB values.

    You only ever need one transaction log.

    ---------------------------------------------------------------------

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply