Technical Training
Analysis Services TrainingMSAS: Optimization Tuning Part 2 Page - 2
MSAS: Optimization Tuning Part 2
Analyzing Usage patterns
To produce on screen report of the cubes query patterns, Analysis Services provides the user with a tool called the Usage Analysis Wizard. We have discussed how this tool is used in the above sections, so we will not go into the details of it here. We will be content with a reiteration of its features. The tool is used in conjunction with the Usage Based Analysis Wizard. The content of the reports are drawn from the Log files and the same can be tailored by setting the criteria of selection of data from the Log. The reports that can be generated by the Usage Analysis Wizard are:
1. Query Run Time table: This report gives details of the run time of queries from the longest to the shortest run time
2. Query Frequency Table: The frequency of queries ordered from the most to the least are displayed
3. Active User table: Reports on details of users and the number of queries sent by them ordered from the most to the least.
4. Query response Graph: A graphical representation of response time
5. Query By Hour Graph: The total number of queries processes, grouped by the hour, graphically presented.
6. Query By Date Graph: Graphical presentation of queries sent, grouped by date.
The next tool is the Usage Based Optimization Wizard. This has also been discussed in detail in the foregoing sections. This is used to optimize aggregations based on usage by end users. It is used in tandem with the Usage Analysis Wizard. It is helpful in optimizing all the partitions of the cube individually. Existing aggregations can be replaced or new aggregations can be created using this wizard. The storage mode of the partition or cube can also be changed using this wizard. The partitions/cubes can be processed after the aggregations are set and the partitions are optimized. The Usage Based Optimization Wizard is nothing but the Storage Design Wizard with a few screens built into its front.
Query Enhancements also help in optimizing server performance and cube data analysis. Use of stored procedures, refinement of SQL statements, Creation of surrogate keys on tables with multipart primary keys, use of hints, Ad hoc caching, scheduling of events in the usage trough and inspection of triggers could go a long way in enhancing query performance.
Tuning up Windows 2000 and fine tuning SQL Server settings also help enhance performance.
1. Windows 2000 should be set to maximize data throughput for network applications. This can be done by navigating to Settings>Network and Dialup connections> Local Area Connections>Properties>File and Printer Sharing and selecting Maximize data throughput by clicking on Server Optimization.
2. Performance boost for front end applications should be disabled. Click Control Panel>System>Advanced tab> Performance Options button. Change the Application Response to Background services.
3. Select a different virtual memory for Windows and SQL Server. Navigate to Performance Options as above and under Virtual memory select Change and make the adjustment.
4. Increase receive buffers of the Network Interface card. Navigate to Computer Management MMC >Device Manager>Network card and select Advanced Tab. Select Property: Receive Buffers and set the value to 1024 or whichever is the highest value available.
Fine tune SQL Server settings by doing the following
1. In the Enterprise manager Right click on the server instance and select properties. The minimum memory for a query is set at 1024 at the bottom of the default setting for minimum memory for a query. This has to be advanced upto 2GB. The default max server memory option need not be tampered with as it is set at maximum anyway.
2. In the Database settings tab, the Recovery Interval default is set to 1 minute. This is ideal for the development environment but should be 8-16 minutes for production environment.
3. Set the Priority boost to 1 on a dedicated server
4. Tune Network packet size depending on the size of the end user packets. Use 1024 byte increments.
5. AWE enabled in server is to be set to 1. This enables the server to use Windows 2000 Address Windowing Extensions to support large address spaces.
To summarize Optimization tuning involves refinement at every level. The hardware, the software and the databases have all to be tuned to give optimum performance. The data warehouse tables have to be indexed, an intelligent storage strategy will have to be framed, the correct and considered level of aggregations will have to be selected, good high quality SQL statements and query parameters will have to be used and so on… The list can be endless, depending on the issues encountered and the environment and usage intensity etc. The above covers only a few aspects of optimization tuning in the SQL Server 2000 Analysis Services.
In the lessons that follow we will be going into greater detail on different aspects of cubes and dimensions and also touching upon MDX queries to enhance queries.
Analysis Services Training
- MSAS - Browsing the Dependency Network
- MSAS - Building a Relational Decision Tree Model
- MSAS - Introduction to Data Mining
- MSAS - Applying security to a Dimension
- Tutorial 65: MSAS - Managing Cube Roles
- MSAS - Understanding Database Roles
- MSAS - Securing User Authentication
- MSAS - Introducing Analysis Services Security
- MSAS - Writebacks
- MSAS - Defining and Creating Drillthrough
- MSAS - Defining and Creating Auctions
- MSAS - Creating and Maintaining Calculated Members in Virtual Cubes
- MSAS - Building a Virtual Cube
- MSAS - Understanding Virtual Cubes
- MSAS - Introducing Solve Order
- MSAS - Implementing Calculations Using MDX Part 2
- MSAS - Implementing Calculations Using MDX Part 1
- MSAS - Merging Partitions
- MSAS - Introduction and Managing Partitions
- MSAS - Troubleshooting Cube Processing
- MSAS - Optimizing Cube Processing
- MSAS - Processing Dimensions and Cubes
- MSAS - Introducing Dimension and Cube Processing
- MSAS: Optimization Tuning Part 2
- MSAS: Optimization Tuning Part 1
- MSAS: Usage-Based Optimization
- MSAS: Analysis Services Aggregations
- MSAS: The Storage Design Wizard
- MSAS: Analysis Server Cube Storage
- MSAS: Defining Cube Properties
- MSAS: Introduction and Working with Measures
- MSAS: Introduction and Working with Cubes
- MSAS: Virtual Dimensions
- MSAS: Introducing Member Properties
- MSAS: Creating Custom Rollups
- MSAS: Creating a Time Dimension
- MSAS: Understanding Hierarchies
- MSAS: Dimension Storage Modes and Levels
- MSAS: Working with Levels and Hierarchies
- MSAS: Working with Parent-Child Dimensions
- MSAS : Basics of Levels
- MSAS : Working with Standard Dimensions
- MSAS : Shared vs Private Dimensions
- Understanding Dimension Basics
- MSAS : Office 2000 OLAP Components
- MSAS : Client Architecture
- MSAS : Cube Storage options
- MSAS : Meta data Repository
- MSAS : Analysis services Tools for Extended Functionality
- MSAS : The Wizards
- MSAS : The Analysis Manager and Analysis Server
- MSAS : The Data warehousing framework of SQL Server 2000 - Part 2
- MSAS : The Data warehousing framework of SQL Server 2000 - Part 1
- MSAS : Microsoft Data Warehousing Overview
- MSAS : Browsing the Cube
- MSAS : Designing Storage and Processing the Cube
- MSAS : Building the Cube Part #3
- MSAS : Building the Cube Part #2
- MSAS : Building the Cube Part #1
- MSAS : Setting up the Database in Analysis Server
- MSAS : Preparing to Create the Cube
- MSAS : Introducing Analysis Manager Wizards
- Microsoft Analysis Services Installation
- MSAS - Applying OLAP Cubes
- Understanding OLAP Models
- Designing the Dimensional Model and Preparing the data for OLAP
- Design of the data warehouse: Kimball Vs Inmon
- Defining OLAP Solutions and Data Warehouse design
- Microsoft Analysis Services Training
- Data Warehouse database and OLTP database
- Introduction to Data Warehousing







