At 05:16 PM 1/13/2004 -0600, Williams, Ken wrote:
SELECT count(*) FROM propositions p, output o
 WHERE p.verb_id=o.verb_id
   AND p.tag=o.tag
   AND (p.stop!=o.stop OR p.start!=o.start);

I don't think this will be much help and is very implementation specific, I expect, but....
Your first two where clauses are effectively a "JOIN USING verb_id,tag", which has a much better chance of using any built in optimizations for cross indexing.


Hopefully someone much more knowledgable than I will pipe up, but I hope this helps a little.

michael


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to