Skip to content

Commit 3aec372

Browse files
authored
limit user count for static cohorts to 10k (#101)
1 parent 784b2a3 commit 3aec372

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/db/src/services/cohort.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -578,8 +578,8 @@ export async function updateCohortMembership(
578578
}
579579

580580
const definition = cohort.definition as CohortDefinition;
581-
// Limit static cohorts to 100K profiles to prevent OOM
582-
const profileIds = await computeCohort(cohort.projectId, definition, 100000);
581+
// Limit static cohorts to 10K profiles to prevent OOM
582+
const profileIds = await computeCohort(cohort.projectId, definition, 10000);
583583

584584
// Increment version for ReplacingMergeTree
585585
const version = Date.now();

0 commit comments

Comments
 (0)