fix(core): make indexer faster (#7629)

This commit is contained in:
EYHN 2024-07-29 06:43:12 +00:00
parent 94a55cde62
commit e6f0847ec3
No known key found for this signature in database
GPG Key ID: 46C9E26A75AB276C

View File

@ -34,10 +34,8 @@ export class DocsIndexer extends Entity {
'jq:' + this.workspaceService.workspace.id
);
private readonly runner = new JobRunner(
this.jobQueue,
(jobs, signal) => this.execJob(jobs, signal),
() => new Promise<void>(resolve => requestIdleCallback(() => resolve()))
private readonly runner = new JobRunner(this.jobQueue, (jobs, signal) =>
this.execJob(jobs, signal)
);
private readonly indexStorage = new IndexedDBIndexStorage(