Site sponsored by: Idera Try Idera’s new SQL admin toolset
SQL Server Performance

  • Home
  • Articles
  • Forums
  • Tips
  • Quiz
  • FAQ's
  • Blogs
  • Software
  • Books
  • About Us
RSS Feeds
Sign in | Join


Tip Topics

All Tips
ADO.NET / ASP.NET
Administration
Analysis/OLAP Services
Application Development
Configuration
Components
ETL
Hardware
High Availability
Hints
Index
Misc
Operating Systems
Performance Tuning
Replication
T-SQL
Views

Write for Us

Share you SQL Server knowledge with others and raise your profile in the community More...
Latest Articles

Policy Based Management in SQL Server 2008
Inside SQL Server Cluster Setup and Troubleshooting Techniques - Part I ...
Configure and Manage Policy Based Management in SQL Server 2008 ...
Using Column Sets with Sparse Columns

More     
 
Latest FAQ's

Cannot Start SQL Server Service
Users are able to connect to report manager but not able ...
Errors when SQL Server Snapshot Replication is Running
How to Display Server Name or IP Address in a Reporting ...

More     
   
Latest Software Reviews

Spotlight on ApexSQL Doc 2008
ApexSQL Enforce
Embarcadero Change Manager
SQL Server DBA Dashboard

More     

tips >> analysis/olap services >> Tips for Optimizing SQL Server OLAP/Analysis Services ...

Tips for Optimizing SQL Server OLAP/Analysis Services -- Cube Performance

By : Brad McGehee
Dec 13, 2006

Page 2 / 2

When a cube is processed, temporary disk space is required. For best performance, this disk space should be on a disk array running RAID 0 (disk striping without fault tolerance), RAID 1 (disk mirroring or duplexing), or RAID 10 (disk striping and mirroring). Since fault tolerance is not really a critical factor when processing a cube (the process can be easily restarted), you might want to consider RAID 0 for the absolutely best performance.

Be sure that any disk array you select for temporary disk files has plenty of empty space. As a cube is processed, it is not unusual for the amount of temporary disk space to exceed the size of the cube itself.

By default, temporary disk space is located on the same drive as Analysis Services is installed, but this location can be easily changed, following these steps:

From Analysis Manager (or OLAP Manager), right-click on the appropriate server and choose "Properties."

Next to the "Temporary file folder" box, click "Browse." From here, select an appropriate logical drive.

You just then stop, and then restart the Analysis Service (MSSQLServerOLAPService).

[7.0, 2000] Updated 4-19-2005

*****

OLAP and Analysis Services offers a powerful tool called the Usage-Based Optimization Wizard. This tool uses what is called the Query Log to help you optimize your cube's aggregations based on actual usage of the cubes by users. The Query Log is an actual log of the queries that are run against it. By default, one 1 out of every 10 queries is stored in the log. The Wizard uses the queries it finds in the log to provide you with recommendations on how to optimize the aggregations of your cubes.

There are two different ways that the Query Log can affect the performance of your OLAP or Analysis Services servers. First, the 1 out of every 10 queries that is logged may not be enough to successfully identify and optimize all the queries that are being run against your cubes. Instead, 1 out of every 2, or 1 out of every 5 might be a better choice for logging queries.

Fortunately, you can change this setting, anywhere from 1 out of 1, to 1 out of 10,000. To do this, follow these steps:

From Analysis Manager (or OLAP Manager), right-click on the appropriate server and choose "Properties," the click on the "Logging Tab."

By the option, "Write to long once per ___ queries," you can specify the valid range for logging (1-10,000).

As you might expect, logging queries frequently could negatively affect performance of the server. That's why it is a good idea to limit how long you collect queries in the Query Log. You might decide to collect queries for a few hours, a few days, or even for a few weeks, until you feel that a representative number of queries have been logged so that the Wizard has enough data to make a proper recommendation. But once your testing is over, you should consider turning off the Query Log, which can be done from the same dialog box as described above.

As you may have already guessed, the second way that the Query Log can affect performance is because it takes some CPU and I/O resources to maintain the log. If few queries are run, then running the log won't have much affect on performance. But if many queries are being run all the time, you should consider turning logging off most of the time, and only turning it on when you need to collect data for optimization with the Wizard. [7.0, 2000] Updated 4-19-2005

*****

Often, cube processing times can be significantly reduced by using the "Optimize Schema" option in the Tools menu. When this option is selected, what it does is to try and identify unnecessary joins between dimension and fact tables, and removes them for you automatically. By reducing unnecessary joins, cube processing time is significantly sped up.

For this option to work most efficiently, the following conditions must be in place:

The dimension table must be a shared dimension table. It must also have been processed at least once before you run the "Optimize Schema" option.

The member key column for the lowest level of the dimension table must also contain keys that relate to the fact table and the dimension table, and this must also be the only key that relates the fact table to the dimension table.

The keys in the member key column for the lowest level in the dimension table must also be unique.

The lowest level of the dimension table must be represented in the cube. While the level can be hidden, it must not be disabled.

[7.0, 2000] Updated 4-19-2005


<< Prev Page         








Home | Peformance Articles | Audit Articles | Business Intelligence Articles | Clustering Articles | Developer Articles | Reporting Services Articles | DBA Articles | ASP.NET / ADO.NET Articles | DBA FAQ's | Developer Peformance FAQ's | DBA Peformance FAQ's | Developer FAQ's | Clustering FAQ's | Error Messages | Audit Tool Reviews | Backup Tool Reviews | Coding Tool Reviews | Compare Tool Reviews | Documentation Tool Reviews | Design Tool Reviews | Monitoring Tool Reviews | Log Tool Reviews | Reporting Tool Reviews | Clustering Tool Reviews | Security Tool Reviews | Change Management Tool Reviews | Remote Access Tool Reviews | Book Reviews | Security Tool Reviews | QDPMA Performance Tuning | ADO.NET / ASP.NET | Administration | Analysis/OLAP Services | Application Development | Configuration | Components | ETL | Hardware | High Availability | Hints | Index | Misc | Operating Systems | Performance Tuning | Replication | T-SQL | Views


              © 1999-2008 by T10 Media. All rights reserved