Skip to main content
Solved

Slow Performing Generic Inquiry

  • March 27, 2024
  • 8 replies
  • 179 views

Forum|alt.badge.img
  • Jr Varsity III
  • 69 replies

Hello, 

I’ve created what I thought was a rather simple GI, yet it keeps timing out saying the request entity is too large. 

It should be pulling customers, which is only about 9,000 records, and it can’t load it. 

Can someone take a look at this GI and see if something could be improved? 

Thank you!

Best answer by mbarrett

@bclark 

I downloaded your .XML file and imported it into my demo data local instance. By looking at the tables you have involved it looks like you would be pulling all 9,000 Customers only if their CustomerID was used on a Sales Order, however this number also compounds for each and every single Sales Order record that is also found tied to each individual Customer Account. Then I noticed you had the Contact records included and I was able to identify a missing link in the relationships. You should tie the Customer table to Contacts with BaccountID like you did but you should also add the DefContactID to ContactID in the relationship. This isolates the fields for the 1 “Primary Contact” on the General tab of the Customer screen. The reason for this is you do not have Contacts in the Grouping, so if there were Multiple contact records for 1 Customer Account then you would have record replication occurring. 
 

 

Another suggestion based on the number of records that exist in your Sales Order table. If this is too much data and Acumatica is always timing out, then you can apply some filtering criteria at the relationship level. Which means the data is filtered before ever even being processed in the screen when loaded. Right now, your Start Date parameter defaults to the beginning of 2024 but to absolutely eliminate all the Sales Order records with an order date prior to 2023 with the table joins you can enter something like the following screenshot:
 

 

Let me know if any of this ends up working for your loading issue.

~Good Luck!

Matthew Barrett

SWK Technologies Consultant

View original
Did this topic help you find an answer to your question?

8 replies

Laura02
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3132 replies
  • March 27, 2024

Hello,

Can you please show the Joins on the Relations tab?

Thank you.

Laura


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • 69 replies
  • March 27, 2024

@Laura02 Does this help?


Laura02
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3132 replies
  • March 27, 2024

Thank you for humoring me!

I thought I might be able to see a quick solution… but I will go ahead and download the attachment.

 

L.

 


Forum|alt.badge.img

Have you tried changing all the Join Types to LEFT joins?


mbarrett
Jr Varsity III
Forum|alt.badge.img
  • Jr Varsity III
  • 10 replies
  • Answer
  • March 28, 2024

@bclark 

I downloaded your .XML file and imported it into my demo data local instance. By looking at the tables you have involved it looks like you would be pulling all 9,000 Customers only if their CustomerID was used on a Sales Order, however this number also compounds for each and every single Sales Order record that is also found tied to each individual Customer Account. Then I noticed you had the Contact records included and I was able to identify a missing link in the relationships. You should tie the Customer table to Contacts with BaccountID like you did but you should also add the DefContactID to ContactID in the relationship. This isolates the fields for the 1 “Primary Contact” on the General tab of the Customer screen. The reason for this is you do not have Contacts in the Grouping, so if there were Multiple contact records for 1 Customer Account then you would have record replication occurring. 
 

 

Another suggestion based on the number of records that exist in your Sales Order table. If this is too much data and Acumatica is always timing out, then you can apply some filtering criteria at the relationship level. Which means the data is filtered before ever even being processed in the screen when loaded. Right now, your Start Date parameter defaults to the beginning of 2024 but to absolutely eliminate all the Sales Order records with an order date prior to 2023 with the table joins you can enter something like the following screenshot:
 

 

Let me know if any of this ends up working for your loading issue.

~Good Luck!

Matthew Barrett

SWK Technologies Consultant


Manikanta Dhulipudi
Captain II
Forum|alt.badge.img+13

Hi @bclark 

In My Local Vanilla instance, the GI gives the results as expected.

I dont see any slowness.

Thanks


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • 69 replies
  • March 29, 2024

@MinushaWeerasuriya76 

Wouldn’t changing the joins to all LEFT joins bring in all customers though? For this GI, I would only want to see customers who have made an order in the selected date range. 


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • 69 replies
  • March 29, 2024

@mbarrett 
I updated both the join relationships that you suggested, and everything loaded up just fine back to 1/1/2022, which is what I would need. 

Thanks for the suggestion!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings