|
Thank you, brothers. In fact, my intention was to ask about optimization using temporary tables, batch execution, etc., because this model is too simplified and may not fully simulate the prototype. The select statement in the prototype should not be easy to merge For example, the following writing:
select count (*) from table1 where field1 = 2 * @ i and field2 = @ j + 5
or
select count (*) from table1 where field1 = random number * @ i and field2 = random number * @ j
What I want to ask is how to optimize in this case? Thank you all. |
|