web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / RemoveIf execution to ...
Power Apps
Unanswered

RemoveIf execution to long

(0) ShareShare
ReportReport
Posted on by 30

Hello 

 

My RemoveIf function takes too long to execute. My tables are located on an on-premises SQL database. Can someone help me optimize my code?

 

Concurrent(
RemoveIf(
Profile,
USR_LogonName = ComboBox_USR_Logon.Selected.USR_LogonName
),
RemoveIf(
Groups,
USR_LogonName = ComboBox_USR_Logon.Selected.USR_LogonName
),
Clear(colCombination);

)

Categories:
  • LaurensM Profile Picture
    12,516 Moderator on at

    Hi @SlyFox,

     

    At a first glance, the code looks quite good to me - using concurrency. However, please keep the following aspects in mind:

     

    • Deleting records in bulk within Power Apps will take a bit of time, no matter how performant your code is written. You could alleviate this issue by trying to spread the processing throughout different screens/points in your app instead of all at once. UI/UX wise you could add a loading spinner or a loading bar.
    • Large bulk CRUD operations should be avoided in Power Apps and should preferably be done (if possible asynchronously) in the back-end (Some examples could be Power Automate / Azure Logic App with a concurrent Apply To Each  & SQL delete action or, maybe even better in this case, Power Automate calling a SQL Stored Procedure)
    • The SQL connector has a throttling limit of 100 calls per 10 seconds (Power Apps monitor might provide you more insight on whether you hit this limit)

      LaurensM_0-1681236865394.png

     

    If this solves your question, would you be so kind as to accept it as a solution.
    Thanks!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 383 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 356

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard