SQL Clone
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in

Formula engine and storage engine in SSAS

In SSAS, to improve query performance, it’s important to understand what happens inside analysis services when a query is run.  Analysis Services is made up of two engines:

Formula Engine (FE) – It is single-threaded.  It processes the MDX queries, determines what data is needed to answer them, then requests that data from the Storage Engine, and then performs all calculations needed for the query.  It does most of the analysis work and tries to keep cells in memory.  Fast clock speeds are the best way to improve a Formula Engine performance.

Storage Engine (SE) – It is multi-threaded.  It handles all reading and writing of data: it fetches the data requested by the Formula Engine when a query is run and aggregates it to the required granularity.  If cells are not in memory, it is the Storage Engine which gets the data from disk.  A performance goal is to minimize Storage Engine use and keep data in memory for the Formula Engine.  Try to use faster storage (SSD) or more disk drives for quicker responses to Storage Engine requests.

So in summary, when you run an MDX query, that query goes first to the Formula Engine where it is parsed; the Formula Engine then requests all of the raw data needed to answer the query from the Storage Engine, performs any calculations on that data that are necessary, and then returns the results in a cellset back to the user.

There are numerous opportunities for performance tuning at all stages of this process, as I will discuss in my next blog post.

James Serra's Blog

James is a big data and data warehousing technology specialist at Microsoft. He is a thought leader in the use and application of Big Data technologies, including MPP solutions involving hybrid technologies of relational data, Hadoop, and private and public cloud. Previously he was an independent consultant working as a Data Warehouse/Business Intelligence architect and developer. He is a prior SQL Server MVP with over 30 years of IT experience. James is a popular blogger (JamesSerra.com) and speaker, having presented at dozens of PASS events including the PASS Business Analytics conference and the PASS Summit. He is the author of the book “Reporting with Microsoft SQL Server 2012”. He received a Bachelor of Science degree in Computer Engineering from the University of Nevada-Las Vegas.


No comments.

Leave a Comment

Please register or log in to leave a comment.