mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-02 14:33:54 +03:00
fix(core): make indexer faster (#7629)
This commit is contained in:
parent
94a55cde62
commit
e6f0847ec3
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user