added index for cf debug event

This commit is contained in:
IrynaMatveieva 2025-03-07 14:15:31 +02:00
parent 3755bc7ce0
commit 2b50d3159c
2 changed files with 3 additions and 0 deletions

View File

@ -140,6 +140,7 @@ public class DefaultTenantProfileConfiguration implements TenantProfileConfigura
private long maxCalculatedFieldsPerEntity = 5;
@Schema(example = "10")
private long maxArgumentsPerCF = 10;
@Builder.Default
@Min(value = 1, message = "must be at least 1")
@Schema(example = "1000")
private long maxDataPointsPerRollingArg = 1000;

View File

@ -36,3 +36,5 @@ CREATE INDEX IF NOT EXISTS idx_lc_event_main
CREATE INDEX IF NOT EXISTS idx_error_event_main
ON error_event (tenant_id ASC, entity_id ASC, ts DESC NULLS LAST) WITH (FILLFACTOR=95);
CREATE INDEX IF NOT EXISTS idx_cf_debug_event_main
ON cf_debug_event (tenant_id ASC, entity_id ASC, ts DESC NULLS LAST) WITH (FILLFACTOR=95);