I have an Sql request, for example:
UPDATE tProfile SET LastActivity=@DateTimeNow WHERE UserId=@UserId AND Id IN ({0})
Where {0} is the id bite, for example:
UPDATE tProfile SET LastActivity=@DateTimeNow WHERE UserId=@UserId AND Id IN (1155,1684,41368)
And this line can contain a couple of thousand Id.
How can I make this request easier because this request uses a 100% processor.
I want to know several alternatives.
Smith source share