Configurable batch and queue sizes for reindexing