File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -243,14 +243,19 @@ impl Index {
243
243
/// split between the given number of threads.
244
244
///
245
245
/// Args:
246
- /// overall_heap_size (int, optional): The total target memory usage of
247
- /// the writer, can't be less than 3000000.
246
+ /// overall_heap_size (int, optional): The total target heap memory usage of
247
+ /// the writer. Tantivy requires that this can't be less
248
+ /// than 3000000 *per thread*. Lower values will result in more
249
+ /// frequent internal commits when adding documents (slowing down
250
+ /// write progress), and larger values will results in fewer
251
+ /// commits but greater memory usage. The best value will depend
252
+ /// on your specific use case.
248
253
/// num_threads (int, optional): The number of threads that the writer
249
254
/// should use. If this value is 0, tantivy will choose
250
255
/// automatically the number of threads.
251
256
///
252
257
/// Raises ValueError if there was an error while creating the writer.
253
- #[ pyo3( signature = ( heap_size = 3000000 , num_threads = 0 ) ) ]
258
+ #[ pyo3( signature = ( heap_size = 128_000_000 , num_threads = 0 ) ) ]
254
259
fn writer (
255
260
& self ,
256
261
heap_size : usize ,
You can’t perform that action at this time.
0 commit comments