Table partition Vs FileGroup

  • should we create the equal number of filegroups for eqaul number of table partitions. like if one table have the partiton on the quarter basis for 10 years, then shall we create the 10*4 = 40 number of New file group for each different partiton. and if there are 10 large table in 1 Database so number the of file group will be 40*10 = 400.

    if we create the partitons for future 5 years, then on the 4Quarter basis there will 20 filegroup will be blank or empty(means not having the data at present) will we need to maintain.

    if the no of filegroup will be increased, is there any impact on the maintainance of database. is there any problem in backup and restore the database, log size increase etc.

    Please suggest what should be strategy for that.

  • Depends. Why are you partitioning? What's the goal? Are those filegroups on different drives?

    Also, you don't need to create partitions that far in advance, usually people have a job that creates new partitions as needed.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • Thanks GilaMonster for your reply.

    shall we create the new filegroup always at the time of partition creation throgh the job. is it the right thing to add the newfilegroups in the database ?

    We want to create the partition for the performenance prospects.

  • nitin.varshney (6/12/2013)


    is it the right thing to add the newfilegroups in the database ?

    Depends what you're trying to achieve. Maybe yes, maybe no.

    We want to create the partition for the performenance prospects.

    Then don't waste your time.

    https://www.simple-talk.com/sql/database-administration/gail-shaws-sql-server-howlers/

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 4 posts - 1 through 3 (of 3 total)

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