Merge pull request #1985 from teslamotors/user/rleidle/set-batch-size

Change the indexing batch size to a static value of 100
This commit is contained in:
Nate Sesti 2024-08-09 19:41:34 -07:00 • committed by GitHub
commit f9163a0f49
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -270,8 +270,7 @@ export class CodebaseIndexer {
}
private getBatchSize(workspaceSize: number): number {
// at least 10 and as much as 100 (in a repository with 10000 files)
return Math.min(100, Math.max(10, Math.floor(workspaceSize / 100)));
return 100;
}
/*