From cd3950684f7f862a747cb61cef770e77eb03aa2c Mon Sep 17 00:00:00 2001 From: Hynek Mlnarik Date: Thu, 27 May 2021 13:28:29 +0200 Subject: [PATCH] KEYCLOAK-18286 Update index creation threshold --- upgrading/topics/migrate_db.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/upgrading/topics/migrate_db.adoc b/upgrading/topics/migrate_db.adoc index 3722b3146b..4ac96b23cd 100644 --- a/upgrading/topics/migrate_db.adoc +++ b/upgrading/topics/migrate_db.adoc @@ -35,7 +35,7 @@ in the new version. Creating an index on huge tables with millions of records can easily take a huge amount of time and potentially cause major service disruption on upgrades. For those cases, we added a threshold (the number of records) for automated index creation. -By default, this threshold is `100000` records. +By default, this threshold is `300000` records. When the number of records is higher than the threshold, the index is not created automatically, and there will be a warning message in server logs including SQL commands which can be applied later manually. @@ -46,7 +46,7 @@ To change the threshold, set the `indexCreationThreshold` property, value for th - + @@ -57,7 +57,7 @@ Or run this CLI command: [source,bash] ---- /subsystem=keycloak-server/spi=connectionsLiquibase/:add(default-provider=default) -/subsystem=keycloak-server/spi=connectionsLiquibase/provider=default/:add(properties={indexCreationThreshold => "100000"},enabled=true) +/subsystem=keycloak-server/spi=connectionsLiquibase/provider=default/:add(properties={indexCreationThreshold => "300000"},enabled=true) ---- === Manual Relational Database Migration