cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

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
Highlighted
Community Support
Community Support

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.

View solution in original post

2 REPLIES 2
Highlighted
Dual Super User III
Dual Super User III

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.
Highlighted
Community Support
Community Support

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.

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (9,785)