简体   繁体   English

在SQL 2005企业版中使用分区有什么好处

[英]What are the benefits of using partitions with the Enterprise edition of SQL 2005

I'm comparing between two techniques to create partitioned tables in SQL 2005. 我正在比较两种在SQL 2005中创建分区表的技术。

  • Use partitioned views with a standard version of SQL 2005 (described here ) 将分区视图与SQL 2005的标准版本一起使用( 在此进行描述)
  • Use the built in partition in the Enterprise edition of SQL 2005 (described here ) 使用SQL 2005企业版中的内置分区( 此处描述)

Given that the enterprise edition is much more expensive, I would like to know what are the main benefits of the newer enterprise built-in implementation. 鉴于企业版要贵得多,我想知道更新的企业内置实现的主要优点是什么。 Is it just an time saver for the implementation itself. 它只是实现本身的节省时间。 Or will I gain real performance on large DBs? 还是可以在大型数据库上获得真正的性能?

I know i can adjust the constraints in the first option to keep a sliding window into the partitions. 我知道我可以在第一个选项中调整约束,以使滑动窗口进入分区。 Can I do it with the built in version? 我可以使用内置版本吗?

searchdotnet rulz! searchdotnet鲁尔兹! check this out: 看一下这个:

http://www.eggheadcafe.com/forumarchives/SQLServerdatawarehouse/Dec2005/post25052042.asp http://www.eggheadcafe.com/forumarchives/SQLServerdatawarehouse/Dec2005/post25052042.asp

Updated: that link is dead. 已更新:该链接已死。 So here's a better one http://msdn.microsoft.com/en-us/library/ms345146(SQL.90).aspx#sql2k5parti_topic6 因此,这里有一个更好的http://msdn.microsoft.com/en-us/library/ms345146(SQL.90).aspx#sql2k5parti_topic6

From above: 从上面:

Some of the performance and manageability benefits (of partioned tables) are (部分表的)一些性能和可管理性好处是

  • Simplify the design and implementation of large tables that need to be partitioned for performance or manageability purposes. 简化为了性能或可管理性目的而需要分区的大型表的设计和实现。
  • Load data into a new partition of an existing partitioned table with minimal disruption in data access in the remaining partitions. 将数据加载到现有分区表的新分区中,而在其余分区中的数据访问中断最小。
  • Load data into a new partition of an existing partitioned table with performance equal to loading the same data into a new, empty table. 将数据加载到现有分区表的新分区中,其性能等同于将相同数据加载到新的空表中。
  • Archive and/or remove a portion of a partitioned table while minimally impacting access to the remainder of the table. 存档和/或删除分区表的一部分,同时最小化对表其余部分的访问。
  • Allow partitions to be maintained by switching partitions in and out of the partitioned table. 允许通过在分区表中切入和切出分区来维护分区。
  • Allow better scaling and parallelism for extremely large operations over multiple related tables. 允许更好的缩放和并行度,以便对多个相关表进行超大型操作。
  • Improve performance over all partitions. 提高所有分区的性能。
  • Improve query optimization time because each partition does not need to be optimized separately. 缩短查询优化时间,因为不需要单独优化每个分区。

When using the partitioned tables you can more easily move data from partition to partition. 使用分区表时,您可以更轻松地在分区之间移动数据。 You can also partition the indexes as well. 您还可以对索引进行分区。

You can also move data from one partition to another table as needed with a single ALTER TABLE command. 您还可以根据需要使用单个ALTER TABLE命令将数据从一个分区移动到另一表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM