[keycloak-user] Poor response time for User REST API

Marek Posolda mposolda at redhat.com
Wed Feb 28 15:01:16 EST 2018


I think there is some fix in latest Keycloak master related to that. 
Could you try to build latest master and check if you see better 
perofmrnace?

Marek

On 28/02/18 18:22, Cedric Vidaillac wrote:
> Hi all,
>
>
>
> I have ~4k users imported in my (postgres) database, when I go for
>
>
>
> GET /{realm}/users/
>
>
>
> For max=100 (default) it takes about 20-22s to respond (60kb document).
>
> For max=20, I still get 4s response time, which is kinda... not ideal.
>
>
>
> I’m not sure if those response time are normal, and if not why is this so
> slow ?
>
>
>
> I’m guessing this overhead is caused by the JSON response, I tried on the
> database (>20ms). -> is there a way to reduce the JSON data response
> produced by Keycloak ? I only need usernames.
>
>
>
> I didnt find anything on the docs, I tried ?fields=username in query param,
> sadly it doesn’t work.
>
>
>
>
>
>   In case you’re wondering why I do that, I want to use an auto-complete on
> my app, with usernames.)
>
>
> Thanks for reading.
>
>
>
> Cédric.
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user




More information about the keycloak-user mailing list