I have Sql-query ike this:
UPDATE tProfile SET LastActivity=@DateTimeNow WHERE UserId=@UserId AND Id IN ({0})
Where {0} - it's a sting of id's, for example:
UPDATE tProfile SET LastActivity=@DateTimeNow WHERE UserId=@UserId AND Id IN (1155,1684,41368)
And this string can have couple thousands Id.
How I can do this query more easier, because this query using 100% CPU.
I want to know some alternates.