cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
paulgg
Helper I
Helper I

Dataverse Collection Filter - performance

I'm pulling records from a Dataverse table into a collection using the formula below. Table only has 300 records in it - but performance is slow - can take over 1 minute to complete. I'm filtering on a text field (userupn) and an optionset (status). 

 

Any thoughts:

 

ClearCollect(colTable, Filter(myTable, crb07_userupn = varUserUPN, crb07_status = [@'Status'].'904330000'));
1 REPLY 1
dpoggemann
Super User
Super User

Hi @paulgg ,

Are you getting a delegation warning with your query?  One of the key things I have done is store the User in a variable but it looks like you have already done this.  A couple things to try:

  1. Remove the status portion of the filter and see if that improves performance
  2. If #1 improves performance could you try filtering based on the approach identified by the accepted solution from here:  https://powerusers.microsoft.com/t5/Microsoft-Dataverse/Filtering-a-CDS-by-Status-in-ClearCollect/td... 

 

Hope this helps!

 

Thanks,


Drew

Hope this helps. Please accept if answers your question or Like if helps in any way.
Thanks,
Drew

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Users online (3,601)