[#0] tree: Increase batch size

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2025-02-19 09:57:37 +03:00
parent 1f3e09647a
commit 45dd5a692f
Signed by: dstepanov-yadro
GPG key ID: 237AF1A763293BC0

View file

@ -449,7 +449,7 @@ type stackItem struct {
}
func getSortedSubTree(ctx context.Context, srv TreeService_GetSubTreeServer, cid cidSDK.ID, b *GetSubTreeRequest_Body, forest pilorama.Forest) error {
const batchSize = 1000
const batchSize = 100_000
// For backward compatibility.
rootIDs := b.GetRootId()