Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Full Text search pefromance for long string


Full Text search pefromance for long string

Author
Message
Megha P
Megha P
Old Hand
Old Hand (304 reputation)Old Hand (304 reputation)Old Hand (304 reputation)Old Hand (304 reputation)Old Hand (304 reputation)Old Hand (304 reputation)Old Hand (304 reputation)Old Hand (304 reputation)

Group: General Forum Members
Points: 304 Visits: 2501
Hi,

I have two queries related to full text search.In that first one is giving result in 10 sec and second one is giving result in less than 1 sec.


SELECT   CandidateID,
ResumeID
FROM CandidateResume
WHERE CONTAINS(ResumeContent, 'designer and HTML and CSS and UX and ("wirefram*" or Omnigraffle or Axure or Balsamiq) and ("UI develop*" or "UX developer" or "GUI developer" or "graphic designer" or "UX architect*" or "UI designer" or "UX designer" or "Interface designer" or "ui framework" or "UI debug*" or "UI using" or "UI bug" or "UI Engineer" or "UI control" or "UI component*" or "UI tech*") and not "present employer" and not "Sponsorship"')

SELECT CandidateID,
ResumeID
FROM CandidateResume
WHERE CONTAINS(ResumeContent, 'ASP and SQL')



DDL statement for table :
CREATE TABLE [dbo].[CandidateResume](
[ResumeID] [int] IDENTITY(1,1) NOT NULL,
[ResumeLabel] [varchar](100) NULL,
[ResumeContent] [varchar](max) NOT NULL,
[CreatedDate] [datetime] NOT NULL,
[CandidateID] [int] NOT NULL,
CONSTRAINT [PK_CandidateResume] PRIMARY KEY CLUSTERED
(
[ResumeID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]


CandidateResume table has around 6 lakh records.Full text index is created on ResumeContent field.

why first query is performing bad?what i can do for searching long strings with good performance?
I have tried with containstable but performance is same.

I have also attached query plan for both queries.

SQL version is Microsoft SQL Server 2008 R2 (SP2) Enterprise Edition (64-bit)

Any suggestion is appreciated

Thanks,
Megha
Attachments
queryPlan.sqlplan (1 view, 31.00 KB)
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search