Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/reduce number of docs synced bulk #2396

Merged
merged 11 commits into from
May 10, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ export class MemberSyncService {

public async syncMembers(memberIds: string[], segmentIds?: string[]): Promise<IMemberSyncResult> {
const CONCURRENT_DATABASE_QUERIES = 10
const BULK_INDEX_DOCUMENT_BATCH_SIZE = 2500
const BULK_INDEX_DOCUMENT_BATCH_SIZE = 100

// get all memberId-segmentId couples
const memberSegmentCouples: IMemberSegmentMatrix =
Expand Down