idAsIndex should be true with a smallint or bigint id field.