Skip to content

Commit 8b36fea

Browse files
add more mentions to batches in other pages, fix filename
1 parent 541a5a7 commit 8b36fea

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

learn/async/asynchronous_operations.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ When you make a [request for an asynchronous operation](#which-operations-are-as
137137
**Terminating a Meilisearch instance in the middle of an asynchronous operation is completely safe** and will never adversely affect the database.
138138
</Capsule>
139139

140+
### Task batches
141+
142+
Meilisearch processes tasks in batches, grouping similar tasks for the best possible performance. In most cases, batching should be transparent and have no impact on the overall task workflow. Use [the `/batches` route](/reference/api/batches) to obtain more information on batches and how they are processing your tasks.
143+
140144
### Canceling tasks
141145

142146
You can cancel a task while it is `enqueued` or `processing` by using [the cancel tasks endpoint](/reference/api/tasks#cancel-tasks). Doing so changes a task's `status` to `canceled`.

learn/async/filtering_tasks.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ Querying the [get tasks endpoint](/reference/api/tasks#get-tasks) returns all ta
99

1010
This guide shows you how to use query parameters to filter tasks and obtain a more readable list of asynchronous operations.
1111

12+
<Capsule intent="tip" title="Filtering batches">
13+
Filtering batches with [the `/batches` route](/reference/api/batches) follows the same rules as filtering tasks. Keep in mind that many `/batches` parameters such as `uids` target the tasks included in batches, instead of the batches themselves.
14+
</Capsule>
15+
1216
## Requirements
1317

1418
- a command-line terminal

learn/async/paginating_tasks.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ description: Meilisearch uses a task queue to handle asynchronous operations. Th
77

88
By default, Meilisearch returns a list of 20 tasks for each request when you query the [get tasks endpoint](/reference/api/tasks#get-tasks). This guide shows you how to navigate the task list using query parameters.
99

10+
<Capsule intent="tip" title="Paginating batches">
11+
Paginating batches with [the `/batches` route](/reference/api/batches) follows the same rules as paginating tasks.
12+
</Capsule>
13+
1014
## Configuring the number of returned tasks
1115

1216
Use the `limit` parameter to change the number of returned tasks:
File renamed without changes.

0 commit comments

Comments
 (0)