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
10320
August 11, 2008 04:34PM
3667
August 11, 2008 05:56PM
3729
August 11, 2008 06:04PM
3547
August 12, 2008 01:38AM
3218
August 12, 2008 09:30AM
3160
August 12, 2008 07:11PM
Re: inner join on range criteria: unable to use index?
3692
August 12, 2008 12:52PM
3035
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.