Data Compression(1)

Supported

ü  SQL SERVER 2008,2012 Enterprise, Developer Edition

Notice :Backup compression is different of Data Compression. Backup compression was introduced in SQL Server 2008 Enterprise. Beginning in SQL Server 2008 R2, backup compression is supported by SQL Server 2008 R2 Standard and all higher editions. At installation, the default behavior is no backup compression. But this default can be changed by setting the backup compression default server configuration option.(USE master; GO EXEC sp_configure ‘backup compression default’, ‘1‘; RECONFIGURE WITH OVERRIDE;)

Advantage

ü  Better use of the IO( because one page can contain more data ,the same amount of data required less page )

ü  Better use of the Memory(because buffer can cache more data)

ü  Reduce page latch(because one page can contain more data)

Disadvantage

ü   Cost more CPU(compression and decompression data will need cpu to work )

can be applied to following objects

ü  A whole table that is stored as a heap

ü  A whole table that is stored as a clustered index

ü  A whole nonclustered index

ü  A whole indexed view

ü  Partition table and index,any partitions can use different compression setting

Compression type

ü   Row Compression

ü   Page Compression

Application

ü  On table

ü  On index

ü  On Partition Table/View

When partition has some change, the compression setting will be applied as follows

    • Dividing partition :  Both partition will inherit the original partition Settings
    • Merging partition : Merge partitions inheritance destination partition Settings
    • Switching partition: The compression settings of original partition and destination partition must be matched.
    • Drop partition clustered index : Table keep compression Settings
    • Estimate space saved

ü  Sp_estimate_data_compression_savings

ü  Data compression wizard

Monitor data compression

ü  Instance level

    • Performance Monitor->SQL Server:Access Method
    • Page compression attempts/sec
    • Page compressed/sec

ü  Database object Level

    • Sys.dm_db_index_operational_stats
    • Sys.dm_db_index_physical_stats

considerations

  • Compression is not available for system tables.
  • Compression is not available for sparse columns.
  • Because of their size, large-value data types are sometimes stored separately from the normal row data on special pages. Data compression is not available for the data that is stored separately.
  • Changing the compression setting of a heap requires all nonclustered indexes on the table to be rebuilt so that they have pointers to the new row locations in the heap.
  • When you are compressing indexes, leaf-level page can be compressed with both row and page compression .Non-leaf-level pages do not receive page compression.
  • When delete the clustered index, the table’s data compression setting will be unchanged. When a clustered index is create on a heap, the clustered index inherits the compression state of the heap unless an alternative compression state is specified.
  • Nonclustered indexes don’t inherit the table compression setting.
  • You can enable or disable row or page compression online or offline. Enabling compression on a heap is single threaded for an online operation.
  • New pages allocated in a heap as part of DML operations will not use page compression until the heap is rebuilt.
  • The disk space requirements for enabling or disabling row or page compression are the same as for creating or rebuilding an index. For partitioned data, you can reduce the space that is required by enabling or disabling compression for one partition at a time.

Data Compression(1)

时间: 2024-10-11 20:48:17

Data Compression(1)的相关文章

Android开发教程 - 使用Data Binding(一) 介绍

引言 Data Binding(数据绑定)发布于2015年的Google I/O大会,旨在减少Android开发中的大量模板代码(比如findViewById()),增加代码及逻辑清晰度,提高开发效率和维护效率. 什么是Data Binding Data Binding,即数据绑定,是Android团队实现MVVM架构的一种方法,使得数据(对象)可以直接绑定到布局的xml中,数据的变化直接反映到View上. 同时,Data Binding也支持双向绑定. 有什么好处 省去大量模板代码,比如fin

Android开发教程 - 使用Data Binding(二)集成与配置

安装依赖库,配置工程 Data Binding安装和配置都非常简单,仅需简单的两步即可完成. 更新SDK 打开SDK管理工具,下载最新的Android Support库. 配置工程的Gradle android { - dataBinding { enabled = true } } 加入完成后,然后点击Sync Now,完成后就可以使用Data Binding强大的功能了. 总结 这一篇我们介绍了Data Binding的配置,下一篇我们将介绍在Activity中使用Data Binding的

使用Python进行Data Analysis(1)

Python是一门热门语言,可以应用于多个方向,比如网络变成,云计算,爬虫,自动化运维,自动化运维以及数据科学等. 本文就数据科学方向,介绍如何使用Python进行Data Analysis 1. 工具安装 工欲善其事,必先利其器.可以使用工具Anaconda和Jupyter Notebook以及Python2.7进行开发 1.1 Python 2.7: 下载地址:https://www.python.org/downloads/release/python-2716/,选择对应的操作系统版本进

Spring Data HelloWorld(三)

在 Spring Data 环境搭建(二) 的基础之上 我们改动  http://www.cnblogs.com/fzng/p/7253068.html 定义个一个接口  继承Repository类  咱们先实现一个根据名字查询 package org.springdata.repository; import org.springdata.domain.Employee; import org.springframework.data.repository.Repository; import

ISP模块之RAW DATA去噪(二)--BM3D算法

在正式开始本篇文章之前,让我们一起回顾一下CFA图像去噪的一些基本思路与方法.接着我会详细地和大家分享自己学习理解的BM3D算法,操作过程,它的优缺点,最后会给出算法效果图供参考. 在ISP模块里,研究者们会讨论去噪模块(Noise Reduction)到底是在去马赛克模块(Demosaic)之前还是之后进行.如果在之前处理的话,随着去噪过程的进行,噪声点消除的同时,伴随着彩色信息的损失:如果在之后,复杂的插值过程将会改变噪声的统计模型,使其变得很复杂并且难以计算.所以,更多的情况是选择在Dem

ISP模块之RAW DATA去噪(一)

ISP(Image Signal Processor),图像信号处理器,主要用来对前端图像传感器输出信号处理的单元,主要用于手机,监控摄像头等设备上. RAW DATA,可以理解为:RAW图像就是CMOS或者CCD图像感应器将捕捉到的光源信号转化为数字信号的原始数据,是无损的,包含了物体原始的颜色信息等.RAW数据格式一般采用的是Bayer排列方式,通过滤波光片,产生彩色滤波阵列(CFA),鉴于人眼对绿色波段的色彩比较敏感,Bayer数据格式中包含了50%的绿色信息,以及各25%的红色和蓝色信息

JavaEE 之 Spring Data JPA(二)

1.JPQL a.定义:Java持久化查询语言(JPQL)是一种可移植的查询语言,旨在以面向对象表达式语言的表达式,将SQL语法和简单查询语义绑定在一起·使用这种语言编写的查询是可移植的,可以被编译成所有主流数据库服务器上的SQL. b.语句: select u from User u where u.userId=? 2.一对一(OneToOne) a.UserInfo类拥有User属性(含有user_id外键) @OneToOne @JoinColumn(name="user_id"

Spring Data 介绍 (一)

简介 Spring Data是什么 Spring Data是一个用于简化数据库访问,并支持云服务的开源框架.其主要目标是使得对数据的访问变得方便快捷 Spring Data JPA能干什么 可以极大的简化JPA的写法,可以在几乎不用写实现的情况下,实现对数据的访问和操作.除了CRUD外,还包括如分页.排序等一些常用的功能. Spring Data JPA 有什么 主要来看看Spring Data JPA提供的接口,也是Spring Data JPA的核心概念: 1:Repository:最顶层的

HTML之Data URL(转)

Data URL给了我们一种很巧妙的将图片“嵌入”到HTML中的方法.跟传统的用img标记将服务器上的图片引用到页面中的方式不一样,在Data URL协议中,图片被转换成base64编码的字符串形式,并存储在URL中,冠以mime-type.本文中,我将介绍如何巧妙的使用Data URL优化网站加载速度和执行效率. 1. Data URL基本原理 Data URL技术,图片数据以base64字符串格式嵌入到了页面中,与HTML成为一体,它的形式如下: <img src="data:imag