mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-10 11:47:42 +02:00
TSK-803: Fix load speed (#2728)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
+17
-3
@@ -34,8 +34,10 @@ import {
|
||||
DOMAIN_MODEL,
|
||||
Enum,
|
||||
EnumOf,
|
||||
FieldIndex,
|
||||
FullTextData,
|
||||
FullTextSearchContext,
|
||||
IndexingConfiguration,
|
||||
IndexKind,
|
||||
IndexStageState,
|
||||
Interface,
|
||||
@@ -249,15 +251,22 @@ export class TFulltextData extends TDoc implements FullTextData {
|
||||
export class TDocIndexState extends TDoc implements DocIndexState {
|
||||
objectClass!: Ref<Class<Doc>>
|
||||
|
||||
attachedTo?: Ref<Doc>
|
||||
attachedToClass?: Ref<Class<Doc>>
|
||||
@Prop(TypeRef(core.class.Doc), core.string.AttachedTo)
|
||||
@Index(IndexKind.Indexed)
|
||||
@Hidden()
|
||||
attachedTo?: Ref<Doc>
|
||||
|
||||
@Prop(TypeRef(core.class.Doc), core.string.AttachedToClass)
|
||||
@Index(IndexKind.Indexed)
|
||||
@Hidden()
|
||||
attachedToClass?: Ref<Class<Doc>>
|
||||
|
||||
// Indexable attributes of document.
|
||||
attributes!: Record<string, any>
|
||||
|
||||
removed!: boolean
|
||||
|
||||
// States for diffetent stages
|
||||
// States for different stages
|
||||
stages!: Record<string, boolean | string>
|
||||
}
|
||||
|
||||
@@ -284,3 +293,8 @@ export class TConfiguration extends TDoc implements Configuration {
|
||||
@Prop(TypeBoolean(), core.string.Private)
|
||||
enabled!: boolean
|
||||
}
|
||||
|
||||
@MMixin(core.mixin.IndexConfiguration, core.class.Class)
|
||||
export class TIndexConfiguration<T extends Doc = Doc> extends TClass implements IndexingConfiguration<T> {
|
||||
indexes!: FieldIndex<T>[]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user