indexed 3way junctions into mysql hash