KEYCLOAK-18286 Update index creation threshold

This commit is contained in:
Hynek Mlnarik 2021-05-27 13:28:29 +02:00 committed by Hynek Mlnařík
parent d163139add
commit cd3950684f

View file

@ -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
<spi name="connectionsLiquibase">
<provider name="default" enabled="true">
<properties>
<property name="indexCreationThreshold" value="100000"/>
<property name="indexCreationThreshold" value="300000"/>
</properties>
</provider>
</spi>
@ -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