feat: queueing bulk follow/unfollow and block/unblock (#10544)
* wrap follow/unfollow and block/unblock as job queue
* create import job to follow in each iteration
* make relationship jobs concurrent
* replace to job queue if called repeatedly
* use addBulk to import
* omit stream when importing
* fix job caller
* use ThinUser instead of User to reduce redis memory consumption
* createImportFollowingToDbJobの呼び出し方を変える, 型補強
* Force ThinUser
* オブジェクト操作のみのメソッド名はgenerate...Data
* Force ThinUser in generateRelationshipJobData
* silent bulk unfollow at admin api endpoint
---------
Co-authored-by:
tamaina <tamaina@hotmail.co.jp>
Showing
- packages/backend/src/core/QueueModule.ts 11 additions, 2 deletionspackages/backend/src/core/QueueModule.ts
- packages/backend/src/core/QueueService.ts 94 additions, 19 deletionspackages/backend/src/core/QueueService.ts
- packages/backend/src/core/UserBlockingService.ts 8 additions, 8 deletionspackages/backend/src/core/UserBlockingService.ts
- packages/backend/src/core/UserFollowingService.ts 5 additions, 4 deletionspackages/backend/src/core/UserFollowingService.ts
- packages/backend/src/core/UserListService.ts 5 additions, 3 deletionspackages/backend/src/core/UserListService.ts
- packages/backend/src/queue/DbQueueProcessorsService.ts 2 additions, 0 deletionspackages/backend/src/queue/DbQueueProcessorsService.ts
- packages/backend/src/queue/QueueProcessorModule.ts 4 additions, 0 deletionspackages/backend/src/queue/QueueProcessorModule.ts
- packages/backend/src/queue/QueueProcessorService.ts 26 additions, 14 deletionspackages/backend/src/queue/QueueProcessorService.ts
- packages/backend/src/queue/RelationshipQueueProcessorsService.ts 26 additions, 0 deletions...s/backend/src/queue/RelationshipQueueProcessorsService.ts
- packages/backend/src/queue/processors/DeleteDriveFilesProcessorService.ts 2 additions, 2 deletions.../src/queue/processors/DeleteDriveFilesProcessorService.ts
- packages/backend/src/queue/processors/ExportBlockingProcessorService.ts 2 additions, 2 deletions...nd/src/queue/processors/ExportBlockingProcessorService.ts
- packages/backend/src/queue/processors/ExportFavoritesProcessorService.ts 2 additions, 2 deletions...d/src/queue/processors/ExportFavoritesProcessorService.ts
- packages/backend/src/queue/processors/ExportFollowingProcessorService.ts 2 additions, 2 deletions...d/src/queue/processors/ExportFollowingProcessorService.ts
- packages/backend/src/queue/processors/ExportMutingProcessorService.ts 2 additions, 2 deletions...kend/src/queue/processors/ExportMutingProcessorService.ts
- packages/backend/src/queue/processors/ExportNotesProcessorService.ts 2 additions, 2 deletions...ckend/src/queue/processors/ExportNotesProcessorService.ts
- packages/backend/src/queue/processors/ExportUserListsProcessorService.ts 2 additions, 2 deletions...d/src/queue/processors/ExportUserListsProcessorService.ts
- packages/backend/src/queue/processors/ImportBlockingProcessorService.ts 38 additions, 41 deletions...nd/src/queue/processors/ImportBlockingProcessorService.ts
- packages/backend/src/queue/processors/ImportFollowingProcessorService.ts 37 additions, 37 deletions...d/src/queue/processors/ImportFollowingProcessorService.ts
- packages/backend/src/queue/processors/ImportMutingProcessorService.ts 4 additions, 2 deletions...kend/src/queue/processors/ImportMutingProcessorService.ts
- packages/backend/src/queue/processors/RelationshipProcessorService.ts 68 additions, 0 deletions...kend/src/queue/processors/RelationshipProcessorService.ts
Loading
Please register or sign in to comment