You may suffer from SQL statements with a slow first execution time due to the long data cache process. The following SQL is simple that retrieves records from the EMPLOYEE table that if EMP_SALARY < 500000 and the result set is ordered by EMP_NAME.
Select emp_id,
from employee
where emp_salary < 500000
order by emp_name;
The following is the query plan that takes 9.51 seconds for the first...
How to build indexes for slow first execution SQL - SQL Server?
Select emp_id,
emp_name,
emp_salary,
emp_address,
emp_telephone
emp_salary,
emp_address,
emp_telephone
where emp_salary < 500000
order by emp_name;
The following is the query plan that takes 9.51 seconds for the first...
How to build indexes for slow first execution SQL - SQL Server?