Indexing and search speed question
Posted: Tue Jan 07, 2003 5:11 pm
Hi there,
There's a search we've been running which is much slower than any others we've run, even though they all *appear* similar.
This search runs pretty quickly for us at the command prompt (5-10 seconds):
tsql "select count(*) from mytable where TEXT1 like '\"Vinson & Ellis\"'"
It returns a count of 3.
This search comes back in under a minute:
tsql "select count(*) from mytable where TEXT1 like 'Vinson Elkins'"
We get a count of 28,000.
However, this next search takes 20-30 minutes to run. Notice that the search term is slightly different from the one at top ("Elkins" and not "Ellis"):
tsql "select count(*) from mytable where TEXT1 like '\"Vinson & Elkins\"'"
It returns a count of 26,000.
I can understand a count of 26,000 taking longer to return than a count of 3, but that much difference in time, when they search over the same field and use the same index?
The TEXT1 field I refer to above is a blob, probably 3 GB in size. Good sized.
Here are the params we use to create the inverted metamorph index on the field:
set keepnoise='on';set delexp=0;set addexp='\alnum{1,99}';set addexp='>>\a
lpha{1,50},=\alpha{1,50}'
Our version of texis is 4.00.1019027849, for Solaris.
If you can help me get a clearer idea on why the third search listed above is so much slower than the first two, I'd be grateful. Thanks!
There's a search we've been running which is much slower than any others we've run, even though they all *appear* similar.
This search runs pretty quickly for us at the command prompt (5-10 seconds):
tsql "select count(*) from mytable where TEXT1 like '\"Vinson & Ellis\"'"
It returns a count of 3.
This search comes back in under a minute:
tsql "select count(*) from mytable where TEXT1 like 'Vinson Elkins'"
We get a count of 28,000.
However, this next search takes 20-30 minutes to run. Notice that the search term is slightly different from the one at top ("Elkins" and not "Ellis"):
tsql "select count(*) from mytable where TEXT1 like '\"Vinson & Elkins\"'"
It returns a count of 26,000.
I can understand a count of 26,000 taking longer to return than a count of 3, but that much difference in time, when they search over the same field and use the same index?
The TEXT1 field I refer to above is a blob, probably 3 GB in size. Good sized.
Here are the params we use to create the inverted metamorph index on the field:
set keepnoise='on';set delexp=0;set addexp='\alnum{1,99}';set addexp='>>\a
lpha{1,50},=\alpha{1,50}'
Our version of texis is 4.00.1019027849, for Solaris.
If you can help me get a clearer idea on why the third search listed above is so much slower than the first two, I'd be grateful. Thanks!