cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kman42
Level: Powered On

Create collections and make local calls or make repeated calls to remote source?

I have a remote mySQL database to which I make repeated calls. Is it more efficient to run a ClearCollect OnStart and gather the subset I need and then make calls to the local collection or make individual calls out to the remote database? I have a bunch of complicated labels in some galleries that need to access this data.

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Create collections and make local calls or make repeated calls to remote source?

Hi @kman42 ,

Yes.

If you store data in collection, the data processing will only work inside powerapps.

While if you call remote data from sql server, you need to transfer data everytime you call. This will spend much time.

The first way will save the time of transferring data, which will make the app perform better.

What's more, call remote sql sever will also case delegation problem while collection will not.

The delegation problem may lead to getting wrong result.

 

Best regards,

Community Support Team _ Phoebe Liu

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 REPLIES 2
Super User
Super User

Re: Create collections and make local calls or make repeated calls to remote source?

In general it will be more efficient to make calls against the local collection rather than round trip to the database.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Community Support Team
Community Support Team

Re: Create collections and make local calls or make repeated calls to remote source?

Hi @kman42 ,

Yes.

If you store data in collection, the data processing will only work inside powerapps.

While if you call remote data from sql server, you need to transfer data everytime you call. This will spend much time.

The first way will save the time of transferring data, which will make the app perform better.

What's more, call remote sql sever will also case delegation problem while collection will not.

The delegation problem may lead to getting wrong result.

 

Best regards,

Community Support Team _ Phoebe Liu

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

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 147 members 3,611 guests
Please welcome our newest community members: