You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the data slice has [table type](/docs/core/data_types#table-types), you can call `row()` method to obtain a child scope representing each row, to apply operations on each row.
It will use `Staging__doc_embeddings` as the collection name if the current app namespace is `Staging`, and use `doc_embeddings` if the app namespace is empty.
382
345
346
+
### Control Processing Concurrency
347
+
348
+
You can control the concurrency of the processing by setting the following options:
349
+
350
+
*`max_inflight_rows`: the maximum number of concurrent inflight requests for the processing.
351
+
*`max_inflight_bytes`: the maximum number of concurrent inflight bytes for the processing.
352
+
353
+
These options can be passed in to the following APIs:
354
+
355
+
*[`FlowBuilder.add_source()`](#import-from-source): The options above control the processing concurrency of multiple rows from a source. New rows will not be loaded in memory if it'll be over the limit.
356
+
357
+
The default value can be specified by [`DefaultExecutionOptions`](/docs/core/settings#defaultexecutionoptions) or corresponding [environment variables](/docs/core/settings#list-of-environment-variables).
358
+
359
+
*[`DataSlice.row()`](#for-each-row): The options above provides a finer-grained control, to limit the processing concurrency of multiple rows within a table at any level.
360
+
361
+
`max_inflight_bytes` only counts the number of bytes already existing in the current row before any further processing.
with doc["chunks"].row(max_inflight_rows=100) as chunk:
374
+
......
375
+
```
376
+
383
377
### Target Declarations
384
378
385
379
Most time a target is created by calling `export()` method on a collector, and this `export()` call comes with configurations needed for the target, e.g. options for storage indexes.
Copy file name to clipboardExpand all lines: docs/docs/core/settings.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,7 +112,7 @@ If you use the Postgres database hosted by [Supabase](https://supabase.com/), pl
112
112
*`source_max_inflight_rows` (type: `int`, optional): The maximum number of concurrent inflight requests for source operations.
113
113
*`source_max_inflight_bytes` (type: `int`, optional): The maximum number of concurrent inflight bytes for source operations.
114
114
115
-
The options provide default values, and can be overridden by arguments passed to `FlowBuilder.add_source()` on per-source basis ([details](/docs/core/flow_def#concurrency-control)).
115
+
The options provide default values, and can be overridden by arguments passed to `FlowBuilder.add_source()` on per-source basis ([details](/docs/core/flow_def#control-processing-concurrency)).
0 commit comments