The aggregation limit does not work if more than 10000 is set in the configs

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Justus
Posts: 13
Joined: 02 Aug 2022, 19:19

The aggregation limit does not work if more than 10000 is set in the configs

Post by Justus » 20 Oct 2022, 11:53

I found some config issues, https://aimeos.org/docs/latest/config/m ... #aggregate
when I set a limit greater than 10000 for "mshop/common/manager/aggregate/limit" config it doesn't work due to checking the minimum value here https://github.com/aimeos/aimeos-core/b ... e.php#L302

Can there be any problems if we just remove the check for the minimum value, or maybe need to set something else in the configuration?

User avatar
aimeos
Administrator
Posts: 7907
Joined: 01 Jan 1970, 00:00

Re: The aggregation limit does not work if more than 10000 is set in the configs

Post by aimeos » 20 Oct 2022, 15:34

"mshop/common/manager/aggregate/limit" is the maximum allowed number of items in an aggregation but the actual number of items that should be used is passed in the filter by the component which calls aggregate().
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply