Disable FTS optimizer in production
This commit is contained in:
parent
a61b0f18f9
commit
0f22048779
1 changed files with 5 additions and 0 deletions
|
@ -6,6 +6,7 @@ import { debounce } from 'lodash';
|
|||
import { SECOND } from '../util/durations';
|
||||
import { sleep } from '../util/sleep';
|
||||
import { drop } from '../util/drop';
|
||||
import { isProduction } from '../util/version';
|
||||
import dataInterface from '../sql/Client';
|
||||
import type { FTSOptimizationStateType } from '../sql/Interface';
|
||||
import * as log from '../logging/log';
|
||||
|
@ -16,6 +17,10 @@ class FTSOptimizer {
|
|||
private isRunning = false;
|
||||
|
||||
public async run(): Promise<void> {
|
||||
if (isProduction(window.getVersion())) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.isRunning) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue