Changes SqlQuery to ignore the primary index on Record table when all the joins are inner, because it should always be more efficient to pull in the typeId after all other conditions are met.