Partitioning in SQL Server

  • Hi

    what would be best thing to do when you are partioning a table.

    a. create the Index first then do Partitioning

    b. partition the table First and then create Indexes

    Which of these would be the best thing and has performance benefits.

    Thanks,

    Ravi

  • Partition the table first then Indexes,performance will be increase if table have heavy DML operation and huge data in the table but dont forget to define the Lock Escalation to AUTO,when you partition the table and Lock Escalation to AUTO then SQL Server lock the particular Partition not the whole table then other DML can perform on other partitions of a table at the same time

    Regards,
    Syed Jahanzaib Bin Hassan
    BSCS | MCTS | MCITP | OCA | OCP | OCE | SCJP | IBMCDBA

    My Blog
    www.aureus-salah.com

  • Thanks, Mr.Hasan, another thing that hover in my mind is, I have big table that has indexes created earler and if I were to create the partition for this table then the first thing I would be doing is dropping the indexes and partition the table or leave the indexes as it is and partition the table what would you suggest.

    Thanks,

    Ravi

  • I will suggest you to recreate those indexes after applied the partitioning

    Regards,
    Syed Jahanzaib Bin Hassan
    BSCS | MCTS | MCITP | OCA | OCP | OCE | SCJP | IBMCDBA

    My Blog
    www.aureus-salah.com

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

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