slow performance with queries
Posted: Wed Jan 07, 2004 12:59 pm
Hi,
I am trying to run some queries with multiple categories, first I tried:
select Url,Catno from html where Title\Description\Keywords\Meta\Body likep 'library' and Catno liker '2 7';
which gives me the correct result, but is very slow with large result sets (> 50,000 out of 1.3 mil pages).
A previous post suggested making a compound index with both fields. I tried:
CREATE metamorph inverted index xhtmlbodv on html (Title\Description\Keywords\Meta\Body,Catno);
100 Variable size warning
and when I run the same query, I get no results.
I have set "bubble=0", "likerrows" and "likeprows".
Is there a way to speed up this query?
Then I tried the following:
select Url,Catno,count(*) from html where Title\Description\Keywords\Meta\Body likep 'cancer' and Catno liker '2 7' group by Depth;
It becomes unusable. It takes almost a minute. It spends most of it's time in the function groupbysetup2. (There is an index on Depth)
Is there a way to speed up this operation?
P.
I am trying to run some queries with multiple categories, first I tried:
select Url,Catno from html where Title\Description\Keywords\Meta\Body likep 'library' and Catno liker '2 7';
which gives me the correct result, but is very slow with large result sets (> 50,000 out of 1.3 mil pages).
A previous post suggested making a compound index with both fields. I tried:
CREATE metamorph inverted index xhtmlbodv on html (Title\Description\Keywords\Meta\Body,Catno);
100 Variable size warning
and when I run the same query, I get no results.
I have set "bubble=0", "likerrows" and "likeprows".
Is there a way to speed up this query?
Then I tried the following:
select Url,Catno,count(*) from html where Title\Description\Keywords\Meta\Body likep 'cancer' and Catno liker '2 7' group by Depth;
It becomes unusable. It takes almost a minute. It spends most of it's time in the function groupbysetup2. (There is an index on Depth)
Is there a way to speed up this operation?
P.