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
{{ message }}
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: src/guides/v2.4/extension-dev-guide/indexer-batch.md
+12-5Lines changed: 12 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -104,11 +104,18 @@ The following examples illustrate how to define a custom batch size for configur
104
104
</type>
105
105
```
106
106
107
-
### Setting batch size through environment variables.
107
+
### Setting batch size with environment variables
108
108
109
-
Starting from 2.4.3 its possible to configure the batch size through the environment variables or in `app/etc/env.php`file for `cataloginventory_stock`, `catalog_category_product`, `catalogsearch_fulltext`, `catalog_product_price`, `catalogpermissions_category`, `inventory`indexers.
109
+
Starting in Magento 2.4.3, it is possible to configure the batch size with the environment variables, or in `app/etc/env.php` for the following indexers:
110
110
111
-
Example of configuration in `app/etc/env.php`
111
+
-`cataloginventory_stock`
112
+
-`catalog_category_product`
113
+
-`catalogsearch_fulltext`
114
+
-`catalog_product_price`
115
+
-`catalogpermissions_category`
116
+
-`inventory`
117
+
118
+
Here is an example of the configuration in `app/etc/env.php`
112
119
113
120
```php
114
121
<?php
@@ -136,8 +143,8 @@ return [
136
143
];
137
144
```
138
145
139
-
Size for `catalog_category_product`, `catalogpermissions_category`, `catalogpermissions_category`batches can be setup for all product types only.
140
-
Size for `cataloginventory_stock`, `catalog_product_price`, `inventory` can be set up for each product type. Also, if there is no batch size for a specific product type, the `default` value will be used. It is recommended to set the `default` value for each indexer so that there can be different batch sizes per product type.
146
+
The batches size for `catalog_category_product`, `catalogpermissions_category`, `catalogpermissions_category`will be set for all product types.
147
+
Batch size for `cataloginventory_stock`, `catalog_product_price`, `inventory` can be set up for each product type. If no batch size is set for a specific product type, the `default` value is used. We recommend setting the `default` value for each indexer to allow for different batch sizes per product type.
0 commit comments