Tips, Tricks, and Advice from the SQL Server Query Optimization Team

Local-Global Aggregation

Today's topic is a general primer on something that is called "local-global aggregation".  Effectively, this is a technique to allow you to take a query containing joins and group bys and perform the group by partially "before" the joins.  This can dramatically reduce the number of rows that a query has to process to return a result, and therefore it is a very powerful operation.  This technique is also quite useful to split a grouping operation into something that can be done in parallel.  That obviously can also speed your query as well.

I hope to put something more formal together soon, work permitting, but here is an introduction that you can read in the meantime:

http://citeseer.ist.psu.edu/jaedicke97framework.html

Thanks,

Conor

Published Tuesday, April 18, 2006 9:31 AM by QueryOptTeam

Comments

 

Jeff Barnes - MCSD said:

Here is what happened this week:

Comparison of XSLT 2.0 and XQuery 1.0
Upcoming WPF/E Channel 9 Video...
April 21, 2006 12:17 PM
 

Tips, Tricks, and Advice from the SQL Server Query Processing Team said:

Since we’re starting a new blog for the whole query processing team, we think it’s appropriate to start...
September 25, 2006 8:50 PM
 

Tips, Tricks, and Advice from the SQL Server Query Processing Team said:

Since we’re starting a new blog for the whole query processing team, we think it’s appropriate to start...
September 25, 2006 8:52 PM
 

Jeff W. Barnes said:

Blog Spotlight - April 15 to 21

January 4, 2009 7:33 PM
 

Tips Tricks and Advice from the SQL Server Query Optimization Team | Wood TV Stand said:

May 31, 2009 6:28 PM
Anonymous comments are disabled

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker