cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ASQLGuy New Member
New Member

SQL vs OData very different speeds

I read a post where the writer said that OData is slower than a Direct Query of SQL Server data. I was wondering if the majority of people agree with it or if it's just a known fact. If it is, is there a reason you would choose OData if given the choice of both methods? 

2 REPLIES 2
Highlighted
v-jiascu-msft Super Contributor
Super Contributor

Re: SQL vs OData very different speeds

Hi @ASQLGuy,

 

They are two different things that are used in different scenarios. 

1. OData can't act like Direct Query. We don't need to store data locally when using Direct Query. 

2. OData is a protocol which is usually used in web service while Direct Query is a connection method. 

I think Direct Query is faster. Because Power BI send queries directly into the database. It's obvious we can't do this with OData.

Reference: http://www.odata.org/getting-started/understand-odata-in-6-steps/

https://docs.microsoft.com/en-us/power-bi/desktop-use-directquery

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
monty Frequent Visitor
Frequent Visitor

Re: SQL vs OData very different speeds

According to OData spec and experience, OData allows select, where, group (v4), etc. so it is possible to formulate many SQL queries as effectively in OData.

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

New Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 6 members 3,349 guests
Please welcome our newest community members: