Issue searching user on Keycloak admin console

We are building an environment that would contain about 10 million+ users. While doing the performance testing it is observed that the admin console times out for searching a user from the admin console. I would like to know the best way that can be used to search the users and look for their details, as this would be a critical functionality, when we are supporting millions of users.