When looking up user attribute using searchForUserByUserAttribute, is a table walk performed or is an index used?

As title says, if I have a custom user attribute, e.g. favoriteCar, if I use searchForUserByUserAttribute to search for favoriteCar=mini, would it do a full table walk or is there some other way keycloak can accelerate the search?

Thanks