Browse Source
Merge pull request #12855 from irynamatveieva/calculated-fields
Added index for cf debug event
pull/12857/head
Andrew Shvayka
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
3 additions and
0 deletions
-
common/data/src/main/java/org/thingsboard/server/common/data/tenant/profile/DefaultTenantProfileConfiguration.java
-
dao/src/main/resources/sql/schema-entities-idx-psql-addon.sql
|
|
|
@ -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; |
|
|
|
|
|
|
|
@ -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); |
|
|
|
|