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 / Faster way to join tables
Power Apps
Answered

Faster way to join tables

(0) ShareShare
ReportReport
Posted on by 3,347

I have a sharepoint list, and an SQL table.  I essentially want to do an SQL JOIN between them, on the PartNumber column.  I can do it, but its taking a long time to generate.  I was hoping for a quicker way to handle this.  Any ideas?

 

ClearCollect(ECN_Data_Filtered_PreLoad, Filter('Engineering Change Notice', ECN_Status_PowerApps_Value=4));

ClearCollect(ECN_Data_Filtered, 
 AddColumns(ECN_Data_Filtered_PreLoad,
 "Material",LookUp('[dbo].[VIEW_ALL_PDM_LATEST]',PartNumber=Part_x0020_Number).Material)),
 "ProjectID", LookUp('[dbo].[VIEW_ALL_PDM_LATEST]',PartNumber=Part_x0020_Number).ProjectID))

 

 

The only thing I could think of would be to preload the other table into a collection first, but how can I filter it based on the same PartNumber first?  There are far too many records to do the full table.  I know operations with collections are far quicker than lookups over an on prem gateway to the SQL server.

Categories:
  • a-ovbord Profile Picture
    Microsoft Employee on at

    Hi @martinav,

     

    A great deal of impact in performance, when it comes to Data Gateways is having the gateway in the same region or close to the environment's region.

    Reason being with distance comes latency.

    Are they in the same region?

     

    Thank you,

    Ovidiu

  • martinav Profile Picture
    3,347 on at

    @a-ovbord ,

     

    Thanks for the reply.

     

    How do I even know what region it is in?  My on prem gateway is local (Texas, USA).  How do I know what region everything else is in?  I'm not using azure.  I have no idea where Power Apps and Flow are running from.

  • Verified answer
    a-ovbord Profile Picture
    Microsoft Employee on at

    Hi @martinav,

     

    The data center region through which the Gateway is routed will show in the Status tab inside the app, as shown at point 6 at this link.

    Also if you go to https://admin.powerapps.com/environments with an Admin user, you will see the regions for all your environments. Usually everything is in one region, the default one chosen when the tenant was created.

     

    And so Power Apps and Flow will run on the environment you select, which is located in a particular region, as mentioned previously.

     

    Hope this helps.

    Thank you,

    Ovidiu

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