Apples and Oranges: OLAP Cube Analysis Services is a fundamentally different type of storage than the SQL Server database, and they are designed for different purposes. Technically, MDX is not "faster" than T-SQL, or vice versa - it's just languages, but designed for different needs.
Having said that, a cube is usually best suited for numerical analysis of static data, such as aggregating a large number of sales / transactions / any records over time. In contrast, a traditional relational database usually works very well if the schema and indexes are well constructed for search. An easy way to judge: if your SQL queries should do a lot
select grock, sum/min/max/avg( foo ) from bar group by grock
then a cube can help (it is intended for aggregate mathematical functions - sum () and group by). OTOH if your requests do a lot
select cols from foo where <complicated search>
then the cube probably wonβt help, and I would instead focus on setting up the schema, queries, and indexing, and possibly paging, if the data can be appropriately divided.
Do you have a clustered index and spanning non-clustered indexes matching queries?
onupdatecascade
source share