API/behavior changes

Describe routes and behavior changes

Add batchStrategy field to batch objects

Motivation

Autobatching enough tasks is very important for indexing performance in Meilisearch. However, which tasks can be batched together by the autobatcher is an implementation detail, and the inner workings of the autobatcher are not always trivial, resulting in unexpected performance pitfalls for some users.

This task is about making it clear what causes the autobatcher to stop batching tasks. This will allow users (or at least, Meilisearch engineers) to easily troubleshoot indexing performance issues that might be related to autobatching patterns.

Usage

The batch object now contains a new batchStrategy field that displays a text representation of how the autobatcher created this batch of tasks.

Examples

Telemetry

No new telemetry

Error handling