Re: Fulltext search too slow
- From: DC <dc@xxxxxxxxx>
- Date: Fri, 03 Aug 2007 02:54:26 -0700
On 3 Aug., 10:51, "Daniel Crichton" <msn...@xxxxxxxxxxxxxxxx> wrote:
DC wrote on Thu, 02 Aug 2007 09:36:01 -0700:
expression: "bank*", hits: 177558, elapsedms:
20746
expression: "citibank*", hits: 20478, elapsedms: 296
That was uncached. Why did "bank*" take so much longer compared to
"citibank*"?
Because "bank*" returned 177558 results, whereas "citibank*" returned only
20478. The smaller the result set the quicker the query will run, and it
appears that once you hit a large number of results (actual number will
depend on various factors, but lets say 30,000 for sake of argument here)
then there is a huge performance penalty. Also try generating some execution
plans and see if maybe some of them are generating parallelism - if so, and
you have hyperthreading CPUs, you might want to consider adjusting the
MAXDOP to the number of physical CPUs, or even try just 1.
Hm. This one was fine too, and the expressions were not cached. What
was the problem with the initial "bank*"?
It was the very first search, and also returned a lot of results - maybe
it's also due to having had the initial connections to the FTS service and
catalog caching included in it's execution time.
I read something about the ft engine trying to connect to the internet
for it's wordbreaker, maybe that has to do with it? I will check.
That should only affect indexing itself when parsing the rows into words,
not the searching.
Dan
Thank you Dan, I watched the execution plan which looks innocent (98%
remote scan, 2% stream aggregate, 0% compute scalar). Is this the way
to detect parallelism or do I have to look somewhere else? I think
MAXDOP does not apply since we are using 2005 standart edition.
The extremely varying latencies of the fulltext searches do only in
part correlate with the state of caching and the number of returned
hits. Within 10 minutes the same expression that returns about 10.000
hits will vary in latency between 1 and 20 seconds (and it is not
getting faster with later tries, only the first search is quiet sure
quiet slow). So I think there are other limiting factors, and since it
is not CPU or disk queues I am having high hopes about changing the
memory configuration as Simon proposed.
Regards
DC
.
- Follow-Ups:
- Re: Fulltext search too slow
- From: Daniel Crichton
- Re: Fulltext search too slow
- References:
- Fulltext search too slow
- From: DC
- Re: Fulltext search too slow
- From: Daniel Crichton
- Re: Fulltext search too slow
- From: DC
- Re: Fulltext search too slow
- From: Daniel Crichton
- Fulltext search too slow
- Prev by Date: Re: Fulltext search too slow
- Next by Date: Re: Fulltext search too slow
- Previous by thread: Re: Fulltext search too slow
- Next by thread: Re: Fulltext search too slow
- Index(es):
Relevant Pages
|