You are a real geek. So basically you use binary search of some form, silly me never though of it that way.
So I guess we just have to make sure that we use indexes if possible. Then on our queries or joins we use the indexed columns.