Re: FTS query performance on SQL 2005
- From: "Hilary Cotter" <hilary.cotter@xxxxxxxxx>
- Date: Sun, 29 Oct 2006 06:44:56 -0500
Speed depends on the complexity of your query and the amount of rows you are
returning. In your case you have a simple query and what appears to be
causing the performance problem. I would use containstable with the
top_n_by_rank parameter to limit your results set to 100 or 200 rows.
Is this SQL 2005? There are some optimizations for SQL 2005 which will offer
better performance.
--
Hilary Cotter
Director of Text Mining and Database Strategy
RelevantNOISE.Com - Dedicated to mining blogs for business intelligence.
This posting is my own and doesn't necessarily represent RelevantNoise's
positions, strategies or opinions.
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
"Bahama Joe" <someone@xxxxxxxxxxxxx> wrote in message
news:ub9L57y%23GHA.1224@xxxxxxxxxxxxxxxxxxxxxxx
I am seeing some query performance issues on a full-text search on SQL
2005. My table has about 20 million rows, containing an integer primary key
and a field of type text. This is running on a dual core Xeon 2.8 Ghz
processor, 2 GB RAM, 15k RPM drives in a RAID 5 configuration.
My query looks like this:
select ItemID FROM Item WHERE CONTAINS(ItemText, 'there')
which returns about 40,000 rows, but the query takes over 2 minutes! Is
that normal performance for this beefy server for such a simple query? If
I add "TOP 20" after the SELECT, the query takes under 1 second.
I have checked the hardware and I can't seem to find constraints, either
in CPU, memory or disk. Any ideas why that query takes over 2 minutes?
Thanks.
.
- Follow-Ups:
- Re: FTS query performance on SQL 2005
- From: Bahama Joe
- Re: FTS query performance on SQL 2005
- From: Bahama Joe
- Re: FTS query performance on SQL 2005
- References:
- FTS query performance on SQL 2005
- From: Bahama Joe
- FTS query performance on SQL 2005
- Prev by Date: FTS query performance on SQL 2005
- Next by Date: Re: FTS query performance on SQL 2005
- Previous by thread: FTS query performance on SQL 2005
- Next by thread: Re: FTS query performance on SQL 2005
- Index(es):
Relevant Pages
|