SQL Server 2008中SQL应用系列及BI笔记系列--目录索引
导读:本文继续介绍Analysis Services中设计聚合(Aggregations)
。
本文将包括以下内容:
■1、使用Aggregation设计向导设计Aggregation
■2、通过创建属性关联和用户自定义层次来改善Aggregation
■3、使用AggregationUsage特性控制一个属性的聚合
■4、设计一个独立的Aggregation
■5、通过长期的数据量的估算改善Aggregation(Improve aggregation design by using
long-term estimates of data volume)
■6、启用Analysis Services查询日志
■7、基于使用Usage-Based的优化向导的日志查询设计Aggregation
本文末尾提供两个项目源码:AdventureWorks_BI_Begin13和AdventureWorks_BI_End13,顾名思义,开始和完成。另外,包括数据库文件SSAS2008SBS_Data,请读者自行修改数据源ds的连接串。
4、不使用聚合向导设计聚合
下面我们不使用聚合设计向导设计聚合。


改变Partition Counts




部署项目。
5-7、使用Usage-Based优化向导
除了使用聚合向导,还可以使用基于Usage-Based优化向导来设计聚合(http://64.4.11.252/zh-cn/library/ms189706(SQL.90).aspx
),区别在于:
Usage-Based的优化向导用于为分区设计聚合,设计聚合时所基于的是 Analysis Services
实例查询日志中所记录的特定使用模式的查询。
聚合向导则考虑所有可能的查询。
我们启用查询日志


重新切换到vs项目,


OLAPQueryLOG数据表的字段如下:
MSOLAP_Database:
Name of the Analysis Services
database
MSOLAP_ObjectPath
:
Fully qualifed name of
the object that was queried in the format ServerName DatabaseName CubeName
PartitionName
MSOLAP_User
: Name of the user who executed the
query
Dataset:
A string of zeros and ones
indicating the level of each attribute hierarchy used to provide the query
results Don’t worry about trying
to interpret this string; the Usage-Based
Optimization Wizard will interpret the string and display the names of the
attribute hierarchies returned by a query
StartTime
:
Time the query began in Coordinated
Universal Time (UTC)
Duration
:
Length of time, in
milliseconds, that it took to execute the query
下面我们使用日志进行Usage-Based的优化聚合设计



源码下载:
begin13
end13
数据库下载
参考资源:
1、SQL Server Analysis Services 官方教程
(http://technet.microsoft.com/zh-cn/library/ms170208.aspx
)
分享到:
相关推荐
《Microsoft SQL Server 2008技术内幕:T-SQL查询》全面深入地介绍了Microsoft SQL Server 2008中高级T-SQL查询、性能优化等方面的内容,以及SQL Server 2008新增加的一些特性。主要内容包括SQL的基础理论、查询优化...
本书为读者提供了深入浅出的学习指南,旨在帮助读者掌握SQL Server 2005 Integration Services (SSIS) 的强大功能。对于那些希望摆脱复杂脚本逻辑编程任务的开发者来说,这本书将教授他们如何利用一个全功能语言来...
we recommend Beginning SQL Server 2005 Administration and Beginning SQL Server 2008 Administration from Wrox, co-authored in part by the same authors. This book introduces the T-SQL language and its...
本文档主要介绍了DFAnet(Deep Feature Aggregation Network),这是一种专为实时图像语义分割设计的深度学习模型。该模型旨在通过高效的特征聚合策略来提高实时性能,同时保持较高的分割准确性。 #### 关键知识点...
《Microsoft SQL Server 2008技术内幕:T-SQL查询》全面深入地介绍了Microsoft SQL Server 2008中高级T-SQL查询、性能优化等方面的内容,以及SQL Server 2008新增加的一些特性。主要内容包括SQL的基础理论、查询优化...
《Microsoft SQL Server 2008技术内幕:T-SQL查询》全面深入地介绍了Microsoft SQL Server 2008中高级T-SQL查询、性能优化等方面的内容,以及SQL Server 2008新增加的一些特性。主要内容包括SQL的基础理论、查询优化...
We study a new aggregation operator for gradients coming from a mini-batch for stochastic gradient (SG) methods that allows a significant speed-up in the case of sparse optimization problems. We ...
Data Cube: A Relational Aggregation Operator Generalizing Group-By, Cross-Tab, and Sub-Totals Abstract: Data analysis applications typically aggregate data across many dimensions looking for unusual ...
SQL Server 7.0 是微软开发的一个关系型数据库管理系统,为用户提供了一套强大的工具和语言来管理和处理数据。其中,交互式SQL(Transact SQL,简称TSQL)是SQL Server的主要查询语言,它扩展了标准SQL的功能,允许...
在SQL Server 2005中,Microsoft提供了强大的OLAP服务,即Analysis Services,使得用户能够进行复杂的业务智能(BI)操作,从而提升决策效率。 SQL Server 2005 Analysis Services是微软为企业级数据仓库和商业智能...
Beginning Transact-SQL with SQL Server 2000 and 2005 byPaul TurleyandDan Wood Wrox Press 2006 (594 pages) ISBN:076457955X Prepare for the ever-increasing demands of programming....
### SQL 2008 行列转换 (Pivot) 的动态实现 #### 知识点一:行列转换(Pivot)的概念与应用场景 在数据库查询中,有时我们需要将数据表中的行转换为列,或者将列转换为行,这种操作被称为行列转换。行列转换在报表...
3. 分组和聚合(Grouping and Aggregation):GROUP BY语句用于按指定列进行分组,而聚合函数(如COUNT, SUM, AVG, MIN, MAX)用于计算每个组的汇总信息。 4. 窗口函数(Window Functions):在SQL Server 2005中...
Beginning Transact-SQL with SQL Server 2000 and 2005 byPaul TurleyandDan Wood Wrox Press 2006 (594 pages) ISBN:076457955X Prepare for the ever-increasing demands of programming. Beginning with an ...
作为软件工程师和微软最有价值专家,张善友分享了聚合管道的操作和架构,并指出聚合管道相对于MapReduce的优势在于其简单易用的接口,以及提供更加直观和易于理解的数据处理方式。 为了确保数据处理的正确性,...
在SQL Server中,默认情况下单条SQL语句的最大长度为8000个字符。当使用动态SQL生成复杂的查询或更新语句时,很容易超出这个限制。例如,在进行分组统计、动态构建复杂查询等情况时,如果涉及大量的字段或条件,可能...
Beginning Transact-SQL with SQL Server 2000 and 2005 byPaul TurleyandDan Wood Wrox Press 2006 (594 pages) ISBN:076457955X Prepare for the ever-increasing demands of programming. Beginning with an ...
Transact-SQL(通常称为T-SQL)是微软SQL Server数据库系统使用的SQL程序设计语言的增强版。它是与SQL Server数据库进行交互的主要语言,提供了包括事务控制、错误处理和可编程性在内的扩展功能,可以用来执行各种...
### MA5680T链路聚合知识点详解 #### 一、链路聚合技术概述 链路聚合(Link Aggregation)是一种将多个物理接口捆绑在一起作为一个逻辑接口的技术,旨在提高链路带宽、实现链路冗余。在企业级网络设备如华为MA5680...
### 2008版链路聚合协议详解 #### 概述 《IEEE Std 802.1AX™-2008》是IEEE(电气电子工程师学会)发布的一个关于局域网和城域网链接聚合的标准文档。该标准于2008年11月3日发布,并由IEEE计算机协会赞助制定。本...