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
Copy file name to clipboardExpand all lines: adminforth/documentation/docs/tutorial/08-Plugins/17-bulk-ai-flow.md
+43-1Lines changed: 43 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -381,4 +381,46 @@ The user will now see a popup with a "Start generation" button and an "Edit prom
381
381

382
382

383
383
384
-
> ☝️ Updated prompts are stored in the user's local storage. Changes are local to that browser and do not affect other users or devices.
384
+
> ☝️ Updated prompts are stored in the user's local storage. Changes are local to that browser and do not affect other users or devices.
385
+
386
+
## Processing big sets of data ( filtered records )
387
+
388
+
There might be cases when you want to process more records than can fit your list view.
389
+
Here you can use the `recordSelector` param.
390
+
It can be `checkbox` (default) or `filtered`.
391
+
`filtered` uses all filtered records for generation, so you can even process the whole resource.
392
+
393
+
394
+
```ts
395
+
newBulkAiFlowPlugin({
396
+
actionName: 'Generate description and Price',
397
+
398
+
//diff-add
399
+
recordSelector: 'filtered', // default is 'checkbox'
400
+
401
+
...
402
+
403
+
});
404
+
```
405
+
>❗️❗️❗️ Using `recordSelector:'filtered'` might be expensive. Before processing large data sets, we recommend starting with smaller sets to make sure everything is fine.
406
+
407
+
408
+
## Limiting amount of parallel requests using p-limit
409
+
410
+
If you are processing large sets of data, you might want to limit the number of parallel requests. For this, you can use the `concurrencyLimit` param:
411
+
412
+
```ts
413
+
newBulkAiFlowPlugin({
414
+
actionName: 'Generate description and Price',
415
+
416
+
//diff-add
417
+
concurrencyLimit: 5, //default is 10
418
+
419
+
...
420
+
421
+
});
422
+
```
423
+
424
+
And there won't be more than 5 parallel requests being handled.
0 commit comments