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

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.

View solution in original post

2 REPLIES 2
Highlighted
Dual Super User
Dual 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.
Highlighted
Community Support
Community Support

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.

View solution in original post

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (10,828)