Nicholas Williams
03/22/2024, 3:01 PMtdietrich
03/22/2024, 4:54 PMNicholas Williams
03/22/2024, 5:06 PMNicholas Williams
03/22/2024, 5:26 PMtdietrich
03/22/2024, 8:10 PMSELECT * FROM ( *** YOUR QUERY HERE *** ) WHERE *custrecord_dc_wo_eq_product_line_hidden = 1 )*
tdietrich
03/22/2024, 8:12 PMNicholas Williams
03/22/2024, 8:55 PMShai Coleman
03/25/2024, 12:08 PMWHERE
clauses might matter.
Make sure that the most specific clause is first. In this case this condition should be added to the end of the WHERE
clause.
• Try changing the LEFT JOIN
to INNER JOIN
.
• Ensure that you're not missing any parentheses if there's an OR
condition somewhere
• Try to find the simplest version of a query that produces the issue.
• Custom records might be slower to query and filterNicholas Williams
03/25/2024, 12:17 PMAND wo.custrecord_dc_wo_eq_product_line_hidden != 1
This should dramatically reduce the amount of results but causes the query to take about a minute. I moved it around in the where and same result.Shai Coleman
03/25/2024, 12:18 PMNicholas Williams
03/25/2024, 12:21 PMShai Coleman
03/25/2024, 12:25 PMwo
to the SELECT and see if it has the same effectNicholas Williams
03/25/2024, 12:32 PMNicholas Williams
03/25/2024, 12:44 PMShai Coleman
03/25/2024, 1:25 PMAS
) and see if it gets faster on subsequent executionsNicholas Williams
03/27/2024, 12:17 PM