Fulltext search too slow
- From: DC <dc@xxxxxxxxx>
- Date: Thu, 02 Aug 2007 06:57:59 -0700
Hi,
I am using an FT index on a column (varchar(4000) with an average
length of 100) in a table that contains about 1 million rows.
My tiny performance test looks like
declare @t datetime
set @t = getdate()
select count(*) from containstable(table_name, expression,
'"searchthis*"')
print datediff (ms, @t, getdate())
If "searchthis" matches about 1000 rows, the search will usually take
about 2 seconds. But when it matches a lot of rows (some terms will
match up to 200.000 rows) then the search takes up to one minute. With
5.000 matches the search already takes about 15 seconds. It helps a
bit to restrict the ft search to Top-20000-of-rows but not enough and
I need many results (not to display them but to display how many
results of what type were found).
This is too slow for my application and I am sure the performance has
degraded for some reason. I am rebuilding the ft index every week and
reorganizing it every night. CPU and disk queues look relaxed so there
might be a less apparent bottleneck.
Does someone know where I should start looking for an enhancement, or
are these very rough performance figures normal for a 4 * 3 GHz
machine?
Thanks for any hint in advance,
Regards
DC
.
- Follow-Ups:
- Re: Fulltext search too slow
- From: Daniel Crichton
- Re: Fulltext search too slow
- Prev by Date: Re: Text Column Compare
- Next by Date: Re: Fulltext search too slow
- Previous by thread: Re: Text Column Compare
- Next by thread: Re: Fulltext search too slow
- Index(es):
Relevant Pages
|
Loading