@@ -239,19 +239,19 @@ |
||
239 | 239 | { |
240 | 240 | /** mshop/common/manager/aggregate/limit |
241 | 241 | * Limits the number of records that are used when aggregating items |
242 | - * |
|
243 | - * As counting huge amount of records (several 10 000 records) takes a long time, |
|
244 | - * the limit can cut down response times so the counts are available more quickly |
|
245 | - * in the front-end and the server load is reduced. |
|
246 | - * |
|
247 | - * Using a low limit can lead to incorrect numbers if the amount of found items |
|
248 | - * is very high. Approximate item counts are normally not a problem but it can |
|
249 | - * lead to the situation that visitors see that no items are available despite |
|
250 | - * the fact that there would be at least one. |
|
251 | - * |
|
252 | - * @param integer Number of records |
|
253 | - * @since 2021.04 |
|
254 | - */ |
|
242 | + * |
|
243 | + * As counting huge amount of records (several 10 000 records) takes a long time, |
|
244 | + * the limit can cut down response times so the counts are available more quickly |
|
245 | + * in the front-end and the server load is reduced. |
|
246 | + * |
|
247 | + * Using a low limit can lead to incorrect numbers if the amount of found items |
|
248 | + * is very high. Approximate item counts are normally not a problem but it can |
|
249 | + * lead to the situation that visitors see that no items are available despite |
|
250 | + * the fact that there would be at least one. |
|
251 | + * |
|
252 | + * @param integer Number of records |
|
253 | + * @since 2021.04 |
|
254 | + */ |
|
255 | 255 | $limit = $this->context->getConfig()->get( 'mshop/common/manager/aggregate/limit', 10000 ); |
256 | 256 | $keys = (array) $keys; |
257 | 257 |