Use FTS5 optimizer in production
This commit is contained in:
parent
f5c18cfb51
commit
e124730cb0
12 changed files with 200 additions and 42 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue