Large SQL Database Maintenance

rizwanrangrez 1 Reputation point
2022-12-07T18:49:28.01+00:00

Hi Team,

I am looking for Best approach and Best practice in managing VLDB in SQL Server. In my environment the Huge database size is 10TB with just 5 tables in it and its highly fragmented.

Regards.

SQL Server Other
{count} votes

3 answers

Sort by: Most helpful
  1. Tom Phillips 17,771 Reputation points
    2022-12-07T19:02:43.77+00:00

    There isn't any "magic" based on the database size. You still have to do the same maintenance you do in every database.

    If you are not already, I highly suggest you use Ola's scripts. https://ola.hallengren.com/

    On large databases, I use the parameter "TimeLimit" to limit how long index maintenance runs. Be aware, this doesn't stop anything running, it prevents new things from starting after the TimeLimit is expired.

    0 comments No comments

  2. Seeya Xi-MSFT 16,586 Reputation points
    2022-12-08T02:17:56.09+00:00

    Hi @rizwanrangrez ,

    Welcome to Microsoft Q&A!
    Here is another Microsoft document for your reference.
    Quick list of VLDB maintenance best practices

    Best regards,
    Seeya


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  3. Lars Lawrenz 6 Reputation points
    2022-12-09T17:20:37.2+00:00

    Hi @rizwanrangrez ,

    in your case it seems that basics for VLDB and Maintenance by Ola Hallengreen won't be enaugh. Having 10TB of data requires a data structure that supports it.
    I assumed that you have regular structured data without LOB data (like varbinary(max) or nvarchar(max)) and millions of rows. In this case it is mostly a solution to partition your data. With partitioning you split up the data in the table according to a key (i.e a date). Only the partitions having modified data need maintenance. All other partitions don't.
    I have to mention, that partitioning cannot always be applied to existing tables. This highly depends on the workload and the existing data structure.
    If you like to dig a bit deeper into partioning you can find hier a good resource.

    Best regards,
    Lars

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.