Launch week: the Season Pass & Fundamentals Week are 50% off — ends in 7d 21h 51mSee the sale

Category: Partitioning

Partitioned Tables Cause Longer Plan Compilation Times.

Folks sometimes ask me, "When a table has more indexes, and SQL Server has more decisions to make, does that slow down execution plan generation?"

Well, maybe, but the table design choice that really screws you on compilation time is partitioning. If you choose to partition your tables, even tiny simple queries can cause dramatically higher CPU times. Even worse, as the famous philosopher once said, "Mo partitions, mo problems."

Read more about Partitioned Tables Cause Longer Plan Compilation Times. 12 comments — Join the discussion
Production DBA

DBA Training Plan 17: Should You Partition Your Tables?

In the last episode, I talked about knowing when it's time to scale out: identifying when our data is getting to be so large that we have to split it across multiple servers, and I explained why that is so challenging. But what about table partitioning - SQL Server's ability to break up a single table into smaller ones on the same server?

Read more about DBA Training Plan 17: Should You Partition Your Tables? 11 comments — Join the discussion
Performance Tuning

Filtered Indexes vs. Table Partitioning

It was a dark and stormy… Oh, wrong story. It was actually a warm, sunny afternoon in Charlotte, NC. I was presenting “Index Methods You’re Not Using” at PASS Summit. In this talk, I discussed how indexed views, filtered indexes, and compressed indexes can improve your query performance by reducing I/O.

From stage right, an intrepid audience member raised his hand and asked, “Can you think of an example of when you would use filtered indexes instead of partitioning?”

Read more about Filtered Indexes vs. Table Partitioning 7 comments — Join the discussion

Best Practices + Table Partitioning: Merging Boundary Points

One of the many best practices for SQL Server's table partitioning feature is to create "extra" empty partitions around your data. This is explained in SQL Server Books Online in the page on altering a Partition Function: Always keep empty partitions at both ends of the partition range to guarantee that the partition split (before…

Read more about Best Practices + Table Partitioning: Merging Boundary Points Be the first to comment

SQL Server Table Partitioning Tutorial: Videos and Scripts

There's a secret to learning about SQL Server's table partitioning feature: you need to get your hands on some code and really play with it in a test environment.

In this tutorial, Kendra will walk you through test scripts that set up a sample table partitioning environment. These scripts demonstrate gotchas to look out for and the cool features that can dramatically change your database's performance.

Read more about SQL Server Table Partitioning Tutorial: Videos and Scripts 70 comments — Join the discussion

Potential Problems with Partitioning

Getting started with table partitioning is difficult; there are many decisions to make after you've decided to partition data. Correctly configuring partitioning is critical to the long term performance and stability of the database from both a querying and data modification standpoint. There are three key considerations that database architects should devote time to before embarking on a partitioning implementation: the design of the partitioning key, a thorough study of querying practices, and an examination of data modification practices.

Read more about Potential Problems with Partitioning Be the first to comment
Production DBA

Hash Partitioning, SQL Server, and Scaling Writes

At first glance, SQL Server’s partitioning seems like it should be an easy way to solve problems inserting data into busy tables. If the writes are spread across many partitions it only makes sense that we can avoid write hot spots in SQL Server, right? The truth is much more complicated than it appears. Asking…

Read more about Hash Partitioning, SQL Server, and Scaling Writes 18 comments — Join the discussion

How To Decide if You Should Use Table Partitioning

Great volumes have been written about table partitioning. It’s a complex feature and you can read for days to just understand how you might apply it. But will it improve performance for you? Table partitioning produces great benefits for some applications, but causes giant headaches for others.

How do you know if you should invest your time in table partitioning?

Read more about How To Decide if You Should Use Table Partitioning 160 comments — Join the discussion