Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Baskar
Resident Rockstar
Resident Rockstar

Direct Query performance Issue

Dear Team, 

  Need help to understand what's wrong with my model  with Direct connection ( Oracle ).
 
Source : Oracle 
Connection Type : Direct 
Table used : Team Members ( Max : 57,879Rows ) , Address ( Max : 4,00,000 Rows )
Direction : One ( Address ) to Many ( Team Members )
Used Visual : Table
 
Direct Query Executing less than 700ms , But DAX Query taking  ( 54067 ms ). 
 
Note : 
    There no DAX measure or  DAX Calculation. All the columns coming from Source.
    There is no Power Query transformation.
 
 
Baskar_1-1612167868392.png

 

 

Even there no document from Microsoft/Blog to find what is going on there in Formula engine. 

 

Can anyone help us. 

@amitchandak @parry2k @Greg_Deckler @MFelix @MattAllington @Ashish_Mathur @ImkeF 

 

 
 
 
7 REPLIES 7
v-shex-msft
Community Support
Community Support

Hi @Baskar,

Can you please share some more detail about the 'FE' part that spend most of the duration to process?

How to Get Your Question Answered Quickly 

In addition, have you traced the network status of remote access? It may also affect the performance if these queries are pending for network connection and delay.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

How we can measure the FE timing ? in DAX studio. 

HI @Baskar,

FE and SE seem to mean the 'formula engine' and 'storage engine'.  Perhaps You can take a look at the following blog about the difference between the two engines:

Formula engine and storage engine in DAX 
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

@v-shex-msft 

Thanks. Here my problem is FE taking more time than SE. 

Nothing is there in my model... 

Want to know whats went wrong here. 

HI @Baskar,

Tasks of the formula engine

The formula engine converts a DAX query into a query plan with a list of physical steps to execute. Each step in the query plan corresponds to a specific operation executed by the formula engine. Typical operators of the formula engine include joins between tables, filtering with complex conditions, aggregations, and lookups. Some of these operators require data from columns in the data model. In these cases, the formula engine sends a request to the storage engine, which answers by returning a datacache. A datacache is a temporary storage area created by the storage engine and read by the formula engine that contains the result of a storage engine query.

Datacaches are not compressed; datacaches are plain in-memory tables stored in an uncompressed format, regardless of the storage engine they come from. Because the formula engine is single-threaded, any operation executed in the formula engine uses just one thread and one core, no matter how many cores are available. The formula engine sends requests to the storage engine sequentially, one query at a time. A certain degree of parallelism is available only within each request to the storage engine, which has a different architecture and can take advantage of the multiple cores available.

I think it may mean the formula engine has handled some processing of the storage engine. Since it is single-threaded, if it invoked multiple times, it may use some additional time to process the queue of steps.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
amitchandak
Super User
Super User

@Baskar ,

Direct Query, means SQL - Please

and For DAX, please share the columns you are using in DAX visual.

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Thanks Superman @amitchandak 

No DAX.

used direct column 

 

 

Baskar_0-1612168924490.png

 

Baskar_1-1612169165397.png

 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.