Tighten startup behavior defaults

This commit is contained in:
trifonovt 2026-05-18 14:05:19 +02:00
parent 9da416dbe4
commit d1d81fd478
3 changed files with 8 additions and 4 deletions

View File

@ -1,9 +1,12 @@
package at.procon.ted.startup;
import at.procon.dip.runtime.condition.ConditionalOnRuntimeMode;
import at.procon.dip.runtime.config.RuntimeMode;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.context.annotation.Profile;
import org.springframework.core.annotation.Order;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;
@ -19,6 +22,7 @@ import org.springframework.stereotype.Component;
@Component
@Order(1) // Run before other startup runners
@RequiredArgsConstructor
@ConditionalOnRuntimeMode(RuntimeMode.LEGACY)
@Slf4j
public class OrganizationSchemaFixRunner implements ApplicationRunner {

View File

@ -33,7 +33,7 @@ dip:
max-chunks-per-document: 12
# Startup backfill limit for missing lexical vectors
startup-lexical-backfill-limit: 500
scheduled-lexical-backfill-enabled: true
scheduled-lexical-backfill-enabled: false
scheduled-lexical-backfill-delay-ms: 30000
scheduled-lexical-backfill-batch-size: 200
# Number of top hits per engine returned by /search/debug
@ -333,8 +333,8 @@ dip:
leitstand:
enabled: false
startup-sync-enabled: false
startup-selective-materialization-enabled: true
selective-materialization-person-dbk: 100920031023144811001000
startup-selective-materialization-enabled: false
selective-materialization-person-dbk: #100920031023144811001000
selective-materialization-person-number:
selective-materialization-build-projection: true
create-canonical-time-entries: true

View File

@ -43,7 +43,7 @@ spring:
order_updates: true
flyway:
enabled: true
enabled: false
locations: classpath:db/migration
baseline-on-migrate: true
create-schemas: true