Uploaded image for project: 'Keycloak'
  1. Keycloak
  2. KEYCLOAK-8554

Large number of realms causing slow startup due to new installation check

    XMLWordPrintable

Details

    • Enhancement
    • Status: Closed
    • Major
    • Resolution: Done
    • None
    • 4.6.0.Final
    • None
    • Low
    • NEW
    • NEW

    Description

      The check for new installation using applianceBootstrap.isNewInstall() at KeycloakApplication.migrateAndBootstrap() is causing all realms to be queried.

          public boolean isNewInstall() {
              if (session.realms().getRealms().size() > 0) {
                  return false;
              }
      

      Eventually this check will get slower and slower as the number of realms increase.

      Checking if master realm exist will improve the performance.

      Attachments

        Activity

          People

            Unassigned Unassigned
            gideonray_jira Gideon Caranzo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: