Reindex - option for batch memory size not just document count #57535
Labels
:Distributed/Reindex
Issues relating to reindex that are not caused by issues further down
>enhancement
Team:Distributed
Meta label for distributed team
When dealing with large documents, there are no dedicated options inside Reindex API to prevent memory from blowing up. There is
size
:however that is not enough since a few large documents can go way beyond 100MB regardless of the rest of the documents inside the batch.
For example:
The solution in this case is to keep decreasing the size so that the batch memory size is acceptable - without a dedicated option for that, it's a lot of guess work.
It would be useful to have a companion to
size
, saymax_memory
ormemory_size
, to limit the memory of a batch.So instead of limiting a reindex batch just to the number of documents, it can also be limited based on its memory size.
The text was updated successfully, but these errors were encountered: