Use FTS5 optimizer in production

This commit is contained in:
Fedor Indutny
2023-10-11 01:55:32 +02:00
committed by GitHub
parent f5c18cfb51
commit e124730cb0
12 changed files with 200 additions and 42 deletions

View File

@@ -411,6 +411,11 @@ export type GetAllStoriesResultType = ReadonlyArray<
}
>;
export type FTSOptimizationStateType = Readonly<{
steps: number;
done?: boolean;
}>;
export type EditedMessageType = Readonly<{
conversationId: string;
messageId: string;
@@ -819,6 +824,10 @@ export type DataInterface = {
getMaxMessageCounter(): Promise<number | undefined>;
getStatisticsForLogging(): Promise<Record<string, string>>;
optimizeFTS: (
state?: FTSOptimizationStateType
) => Promise<FTSOptimizationStateType | undefined>;
};
export type ServerInterface = DataInterface & {
@@ -892,6 +901,7 @@ export type ServerInterface = DataInterface & {
// Server-only
initialize: (options: {
appVersion: string;
configDir: string;
key: string;
logger: LoggerType;