I have to retrieve this query (see below, simplified for simplicity) Search for jobs Data We are working with almost one million records. Select Select ID from ID (Select ID, createDate, SearchKeyMatchRank, Row_Number (), by ordering (order by createDate) jobs by applying barley as rowNumber application (SelectKeyMatchRank = case when @ search = '' '' Then '' (Inn Knoll ([rank], 0) from freightable label (jobs, title, @ search) where [key] = j.id.) * 4 + (ianal (select ray)], 0 ) FREETEXTTABLE (Job, Description, @ Search), where [key] = J.ID) * 4 + (choose SIM (JS 2. [Rank], 0)) Fructitable (Job Skills, Skill, @ Searchkey) ESSE 2 where JS2 (where JobId = J.Id) Select ID from JobSkills * 2 END) SMR where search match match & gt; 0 - Par value here) T2 where the row number & gt; = Case when the @ indicative index; 0 and @andindex and gt; ; 0 then = Startindexx ELSE line number number and line number & lt; = Case when @ Startindexx 0 and @ and index & gt; 0 and then @end indices ELSE line number expiration Note: I can not use joining regularly because I The job will be to find weighted ranks Problem: Its very slow.
Apparently the problem is comparing a calculated column.
SearchKeyMatchRank & gt; 0 If I move to SearchKeyMatchRank & gt; 0 This is less then the second.
Anyone has come to know how we can improve
Did anyone know how we can improve it?
Change the column in a "regular" column from the column. Look at this in your testing environment and see if performance improvements are the same.
Comments
Post a Comment