Fix memory usage by batching syncTasks
This commit is contained in:
parent
ab1e6f847d
commit
4027f4604f
8 changed files with 154 additions and 75 deletions
|
@ -845,7 +845,10 @@ type WritableInterface = {
|
|||
|
||||
removeSyncTaskById: (id: string) => void;
|
||||
saveSyncTasks: (tasks: Array<SyncTaskType>) => void;
|
||||
getAllSyncTasks: () => Array<SyncTaskType>;
|
||||
dequeueOldestSyncTasks: (previousRowId: number | null) => {
|
||||
tasks: Array<SyncTaskType>;
|
||||
lastRowId: number | null;
|
||||
};
|
||||
|
||||
getAllUnprocessedIds: () => Array<string>;
|
||||
getUnprocessedByIdsAndIncrementAttempts: (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue