mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
refactor(server): updates merge delay reduced to 5 seconds (#13138)
close AF-2733 #### PR Dependency Tree * **PR #13138** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Reduced the delay for merging pending document updates from 30 seconds to 5 seconds, resulting in faster update processing. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -100,7 +100,7 @@ export class PgWorkspaceDocStorageAdapter extends DocStorageAdapter {
|
||||
{
|
||||
// keep it simple to let all update merged in one job
|
||||
jobId: `doc:merge-pending-updates:${workspaceId}:${docId}`,
|
||||
delay: 30 * 1000 /* 30s */,
|
||||
delay: 5 * 1000 /* 5s */,
|
||||
priority: 100,
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user