简体   繁体   English

SQL Server 2017 标准版中的数据压缩

[英]Data Compression in SQL Server 2017 Standard Edition

I have set up a SQL Server 2017 Standard Edition instance and I am experimenting with data compression.我已经设置了一个 SQL Server 2017 标准版实例,我正在试验数据压缩。 One thing I noticed is that the SQL Server uses only one core for compression, which on a large table (>300GB) takes a very long time to complete.我注意到的一件事是 SQL Server 仅使用一个内核进行压缩,这在大表 (>300GB) 上需要很长时间才能完成。 Incidentally, a SQL 2014 Dev Edition uses all available cores for the same operation and takes a fraction of the time.顺便说一句,SQL 2014 Dev Edition 使用所有可用内核进行相同的操作,并且只需要一小部分时间。

Is this expected behavior?这是预期的行为吗? If yes, is it limited to when the table is compressed the first time ie via ALTER TABLE?如果是,是否仅限于第一次压缩表时,即通过 ALTER TABLE? Will SQL Server SE only ever use 1 core when inserting and/or extracting data from a compressed table?在从压缩表插入和/或提取数据时,SQL Server SE 是否只使用 1 个核心?

(IMHO) This is expected behavior and limitation of Standard Edition. (恕我直言)这是标准版的预期行为和限制。

While some of the Enterprise features been unlocked in SQL Server 2016 SP1, Microsoft intentionally keeps plenty optimizations like multi-core maintenance tasks only in Enterprise edition.虽然 SQL Server 2016 SP1 中解锁了一些企业功能,但微软特意保留了大量优化,例如仅在企业版中的多核维护任务。 Because it simply costs 4x more than Standard.因为它的成本只是标准的 4 倍。 So companies that really need such grade of functionality have to buy premium offering.因此,真正需要此类功能的公司必须购买优质产品。

According to this document :根据这份文件

Enterprise edition:企业版:

The premium offering, SQL Server Enterprise edition delivers comprehensive high-end datacenter capabilities with blazing-fast performance , unlimited virtualization, and end-to-end business intelligence - enabling high service levels for mission-critical workloads and end-user access to data insights.高级产品 SQL Server 企业版提供全面的高端数据中心功能,具有极快的性能、无限虚拟化和端到端商业智能 - 为任务关键型工作负载和最终用户访问数据洞察力提供高服务水平.

Standard edition:标准版:

SQL Server Standard edition delivers basic data management and business intelligence database for departments and small organizations to run their applications and supports common development tools for on-premise and cloud - enabling effective database management with minimal IT resources. SQL Server 标准版为部门和小型组织提供基本的数据管理和商业智能数据库以运行其应用程序,并支持内部部署和云的通用开发工具 - 以最少的 IT 资源实现有效的数据库管理。

Similar limitations of Standard Edition:标准版的类似限制:

  • single core index rebuilt单核索引重建
  • max 25% of RAM can be used by columnstore etc etc列存储等可以使用最多 25% 的 RAM

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

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