Re: inner join on range criteria: unable to use index?
OK! I think what I failed to realize was that I know something about the data that mysql doesn't, which is the following: "start" is always smaller than "end" for any given row.
So the query could be written like this:
select * from s inner join r on r.tstart >= s.chrstart and and r.tstart <= s.chrstop and r.tend <= s.chrstop and r.tend >== s.chrstart and r.tname=s.chr and r.strand=s.chrstrand;
Subject
Views
Written By
Posted
10197
August 11, 2008 04:34PM
3610
August 11, 2008 05:56PM
3678
August 11, 2008 06:04PM
3500
August 12, 2008 01:38AM
3159
August 12, 2008 09:30AM
3108
August 12, 2008 07:11PM
Re: inner join on range criteria: unable to use index?
3643
August 12, 2008 12:52PM
2981
September 26, 2008 11:38PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.