all groups > sql server full text search > september 2007 >
You're in the

sql server full text search

group:

First FTS-query to slow



First FTS-query to slow Franky
9/19/2007 2:40:01 AM
sql server full text search: We are using FTS on a table which has for the moment 4500 rows.
When we restart the FTS-service, or no one uses the search for a while, then
the first FTS-query takes up to 60 seconds. (also when there is only 1 record
returned)
While lookalike queries after the first take about 60 miliseconds.
We've alreade rebuild the catalog, but this does not help.

The problem is on the FTS. The query I use to test the performance uses only
the FTS-engine, see statement below.
select [KEY] from containstable(EURO.TB_ProductGroup_FTS_V2,*,'test')

Re: First FTS-query to slow Hilary Cotter
9/19/2007 10:58:39 AM
This is because the full-text engine relies on the file system cache to keep
the catalogs in cache. If they are not used they are flushed to disk. You
need a sql server job that runs ever 5 minutes or so to search on something
relatively large - like the word the.

--
RelevantNoise.com - dedicated to mining blogs for business intelligence.

Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
[quoted text, click to view]

Re: First FTS-query to slow Faisol G
9/26/2007 2:20:02 AM
I also had this problem currently and the weird thing is that, the first
query delay will be gone if I cleared the DNS entry in the tcp/ip setting.
When I put it back then the problem will be back where the first query will
be badly delayed (around 60 sec more or less). Subsequent FT query will be
normal and fast. Leave the machine for around 15 mins. then the first query
will be slow again.

This happen with either small number of records (around 30 rows) and also
lots (around 300 rows).

Anybody got solution or actionable explanation for this? Thanks.

Faisol

[quoted text, click to view]
Re: First FTS-query to slow InstantKiwi
9/26/2007 4:01:36 PM
Check out http://support.microsoft.com/kb/915850 as I suspect this may
the problem you are all encountering. The only thing I am unsure
about is how insecure the suggested work around is so as a temporary
solution I have created a sql job to execute a basic full-text query
every 4 minutes to that the word breaker does not have to try to re-
verify every 5 minutes.
AddThis Social Bookmark Button