mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-11-27 10:34:42 -05:00
Push a batch at 16 MiB of document data or before a document would overflow it. Reindexing large text files ran out of memory otherwise.
10 lines
249 B
Go
10 lines
249 B
Go
// Copyright 2026 OpenCloud GmbH <mail@opencloud.eu>
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package bleve
|
|
|
|
// SetMaxBytes lowers the data limit of b, so tests don't need megabytes of content
|
|
func SetMaxBytes(b *Batch, n uint64) {
|
|
b.maxBytes = n
|
|
}
|