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

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
ivannye
Helper I
Helper I

optimization of notebook taking data from salesforce

Hi Guys,

 

I would like to optimize this query. It run every 5 minutes but it takes a lot of ressources. I would appreciate any help to optimize it please.

Edit: I deleted the code as I have found the solution. Thanks everyone

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @ivannye,

It seems like you are handling query data from data base that only applied one filter by datetime and return with many columns.

Have you tried to limit the result row numbers such as pagination effect or only execute one simple query each time? They should reduce the resource usages. 

Also you can try to only return the key field ID list from table, then you can use these IDs as condition to filter records to return the table with wanted fields.

Regards,

Xiaoxin Sheng

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @ivannye ,

Any update on this? Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.

If these also don't help, please share more detailed information and description to help us clarify your scenario to test.

Regards,

Xiaoxin Sheng

ivannye
Helper I
Helper I

Mostly memory and capacity utilization

Anonymous
Not applicable

HI @ivannye,

It seems like you are handling query data from data base that only applied one filter by datetime and return with many columns.

Have you tried to limit the result row numbers such as pagination effect or only execute one simple query each time? They should reduce the resource usages. 

Also you can try to only return the key field ID list from table, then you can use these IDs as condition to filter records to return the table with wanted fields.

Regards,

Xiaoxin Sheng

lbendlin
Super User
Super User

Please be more specific.  Which part of the process takes the longest time, and what are "resources"  ?  Memory?  API calls?

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

Check out the June 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.