SQL Server Performance

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


Article Topics

All Articles
Performance Tuning
Audit
Business Intelligence
Clustering
Reporting Services
SQL Azure
Developer
General DBA
ASP.NET / ADO.NET
SQL Azure

USEFUL SITES :

ASP.NET Tutorials
Windows and SQL Azure Tutorials
Cloud Hosting Magazine
SharePoint Tutorials
Windows Server Help

Write for Us

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

A High Level Comparison Between Oracle and SQL Server - Part ...
A High Level Comparison Between Oracle and SQL Server - Part ...
A High Level Comparison Between Oracle and SQL Server - Part ...
A High Level Comparison Between Oracle and SQL Server

More     
 
Latest FAQ's

Add Node to A SQL Server failover Cluster failed with invalid ...
SQL Server Destination remote server error
Setting Up Data And Log Files For SQL Server
Will Check Constraints Improve Database Performance?

More     
   
Latest Software Reviews

dbForge Review
Spotlight on ApexSQL Diff - Server-based database comparison tool ...
Spotlight on ApexSQL Data Diff - Server-based database comparison tool ...
Spotlight on ApexSQL Doc 2008

More     

articles >> business intelligence >> Optimizing Microsoft SQL Server Analysis Services: MDX ...

Optimizing Microsoft SQL Server Analysis Services: MDX Optimization Techniques: Optimizing NON EMPTY

By : William E. Pearson, III
Apr 20, 2004

Page 2 / 3

Optimizing Query Performance While Using NON EMPTY

Considerations and Comments


Many of us enthusiastically use the NON EMPTY keyword when initially faced with sparse datasets such as I have described. However, we have perhaps been “underwhelmed,” as Oscar Wilde would have said, with performance in many instances where we have used the popular keyword within a scenario involving calculated members. In this article, we will describe the degradation that accompanies the use of NON EMPTY in such instances within our MDX queries, together with the underlying causes of those effects. We will then offer an approach to minimizing the impact of the causes, and to optimize prospective uses of NON EMPTY as part of the rich collection of capabilities that make MDX, in conjunction with MSAS, a power tool without equal in providing business intelligence to the clients and other organizations we serve.


At the heart of the degradation in processing is the fact that a query can be slowed markedly when we apply NON EMPTY to an axis within an MDX query that contains a calculated member. When we use NON EMPTY in this context, the calculated member evaluates its expression for every member to ascertain emptiness or non-emptiness of each. This assessment of each member can, depending upon the number of members, take considerable time; it is this check of the member population, member by member, that can add punishing overhead and increase query processing time.

Hands-On Procedure


Having become aware of the cause of the degradation we have described in the NON EMPTY / calculated member combination, we can easily take advantage of a calculated member property setting that is in place for the specific purpose of helping us to minimize degradation of this kind. The Non Empty Behavior property, in effect, permits us to direct prospective queries to bypass the expensive member evaluation process we have described above, providing the given calculated member with an “override” of sorts that directs a “foregone conclusion” for the empty / non-empty status, instead of undertaking the costly evaluation process. We will see how to set the property, as well as obtain an understanding of how it works, in the following illustrative steps.


1. Open Analysis Manager.


2. Expand the Analysis Servers folder in the management console.


3. Expand the Analysis Server with which you are working, by clicking the “+” sign to its left.


4. Expand FoodMart 2000 database.


The Analysis Manager tree view appears as shown in Figure 3.


 



Figure 3: Expanded Components in the Analysis Manager Tree View


5. Expand the Cubes folder within the FoodMart 2000 database.


6. Right-click the HR sample cube that appears among the other cubes in the folder.


7. Select Edit from the context menu that appears, as depicted in Figure 4.


 



Figure 4: Select Edit from the Context Menu



The Cube Editor opens.


8. Select the Employee Salary calculated member, shown circled in Figure 5.
 


 

Figure 5: Select the Employee Salary Calculated Member


9. Ensure that the Properties pane – Basic tab is open to view.


10. Click the Value property on the Advanced tab to highlight / select it.


An ellipses (“…”) button appears to the far right of the Value property, as shown in Figure 6.


 



Figure 6: Properties Pane – Basic Tab, Value Property Setting


11. Click the ellipses button.


<< Prev Page     Next Page>>    








C# Help and Tutorials | PHP MySQL Tutorial | Sharepoint Tutorial | Azure Tutorial | Cloud Hosting Magazine | ASP.NET Tutorials | Windows Server Help | Windows Phone Pro | Silverlight Ace | Visual Studio Tutorials | Home | Peformance Articles | Audit Articles | Business Intelligence Articles | Clustering Articles | Developer Articles | Reporting Services Articles | DBA Articles | ASP.NET / ADO.NET Articles | SQL Server Training Videos | 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 | 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


              © 2010 Jude O'Kelly. All rights reserved