OR between Regular and Metamorph searches SLOW

Post Reply
skalyanaraman
Posts: 109
Joined: Tue May 29, 2001 9:13 pm

OR between Regular and Metamorph searches SLOW

Post by skalyanaraman »

Hi,
We are running Texis version from OCT 28 2003.
We are running a count of all records with
"FIELD1 > '1000' and FIELD1 < '2000' or FIELD2 like 'test auto insurance @0'"
This select runs for more than 20 mins.
But, if I do FIELD2 like 'test auto insurance @0'
I get the count in less than minute,
and FIELD1 > '1000' and FIELD1 < '2000' comes back in less than a 5 seconds.

Could you help us with this? We have regular index on FIELD1 and metamorph inverted on FIELD2.

TIA!!
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

OR between Regular and Metamorph searches SLOW

Post by mark »

Does it work better if you parenthesize?
(FIELD1 > '1000' and FIELD1 < '2000') or FIELD2 like 'test auto insurance @0'
skalyanaraman
Posts: 109
Joined: Tue May 29, 2001 9:13 pm

OR between Regular and Metamorph searches SLOW

Post by skalyanaraman »

That did not help. it probably took the same time.
Post Reply