| > This page documents some interesting options for wait: a ?refresh=wait_for and ?refresh=false options to wait for a specific document operation to be applied, or explicitly skip waiting for one operation. Sure, but we already alter the "refresh" parameter based on our configuration and make sure we only execute explicit refreshes when really necessary. We don't use "wait_for", though. Not sure why we would... ? One thing we could do is skipping refresh altogether, independently of the "refresh_after_write" parameter, when doing mass indexing? Not sure it would change much (because we already bulk operations), but it's worth a try. > While here it mentions "To alter this behavior per operation, the wait_for_active_shards request parameter can be used." -> looks like some tuning can be done on a per-setting base, maybe more? The default also seems to be the most efficient (only wait for the primary shard). But maybe we could add request parameters when mass indexing just in case the user increased the value of the index setting... ? > In the case of the translog settings, maybe we don't even need this: It's reasonable to expect to log at least an error message when an operation failed; we need to take advantage of the async design of the new Elasticsearch client to keep pushing more indexing operations while performing batch indexing, but still have an error-handler context attached to the older operations which have been sent but not ACKed yet. Sure:
HSEARCH-2764 Open |