I tried to modify the select query that is included in SP (TSQL) to speed up this SP. The initial execution time of this request was several minutes and divided this request into two parts, improving the run time by only a few seconds. No changes were made to the specified index, and is still used for this query. Can someone explain what exactly caused this significant improvement and why?
Thanks.
Original request:
SELECT ( AgentFirstName + ' ' + AgentLastName ) AS AgentName, AC.Agent_ID, AC.TimeStamp INTO
Improved query:
SELECT Agent_ID, AgentFirstName, AgentLastName, TimeStamp INTO
user1756190
source share