SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Other SQL Server 2008 Topics
 Fast full-text search get slower with time
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

loki13
Starting Member

5 Posts

Posted - 09/30/2011 :  07:39:13  Show Profile  Reply with Quote
Hi,

I implemented a full text search recently in our database.
It worked great at the beginning, only 1 second to get the results while it took 10 seconds with the old LIKE search.

But I realized the new full-text search was getting slower each day until it takes almost the same time as the old search.

I noticed that when I go in the catalog properties and click "Catalog action: Optimize catalog", the search become fast again.

I could probably just script the optimize catalog transact-sql and put it in a job, but I would like to know why the search is going slower if I don't run this optimization daily, is there something else I should do ?

For information, my catalog contains data from 3 different tables, full-text indexes are change tracking automatic, and I scheduled a full population daily at night.

thanks for your help !

RickD
Slow But Sure Yak Herding Master

United Kingdom
3560 Posts

Posted - 09/30/2011 :  08:56:37  Show Profile  Reply with Quote
because everytime you add a new value, you have the possbility of fragmenting the index.
Go to Top of Page

loki13
Starting Member

5 Posts

Posted - 09/30/2011 :  12:57:40  Show Profile  Reply with Quote
So it is THE solution to periodically call this ??

ALTER FULLTEXT CATALOG [MyCatalog] REORGANIZE
Go to Top of Page

RickD
Slow But Sure Yak Herding Master

United Kingdom
3560 Posts

Posted - 10/03/2011 :  03:48:32  Show Profile  Reply with Quote
Yes, during a slow time.
Go to Top of Page

loki13
Starting Member

5 Posts

Posted - 10/03/2011 :  08:00:18  Show Profile  Reply with Quote
quote:
Originally posted by RickD

Yes, during a slow time.



Isn't it a good idea to schedule an execution in the sql server agent to do it before it become slow ?

I mean, is it "not recommended" to do it too often or something ?

Edited by - loki13 on 10/03/2011 08:03:15
Go to Top of Page

AndrewMurphy
Flowing Fount of Yak Knowledge

Ireland
2915 Posts

Posted - 10/03/2011 :  10:42:58  Show Profile  Reply with Quote
"Yes, during a slow time." means "during a general slow time for the server" - i.e. during your off-peak hours and not "when the searching becomes slow".
Go to Top of Page

loki13
Starting Member

5 Posts

Posted - 10/04/2011 :  07:09:53  Show Profile  Reply with Quote
ok thanks for your answers guys
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000