• What about adding 1 column to the small table that would contain RIGHT(smallTable.toid,13), create an index on that and then do your join?

    B