One of the most common tasks in Mergado is to find products that a user connects to a group he needs to work with. Intuitively, this is done with any number of OR conditions. But we have a more effective way for you. With its help, you will not slow down the performance of Mergado.
Use the IN operator
Even though the way of searching for items using the OR conditions is absolutely fine, it will take a long time for a large number of such a query.
[PARAM|Size] = "L" OR [PARAM|Size] = "XL"
An example of using the OR operator to find L or XL size T-shirts.
To prevent this slowdown, use the IN operator.
In Mergado, in addition to the IN operator, the NOT IN negation (not included in the enumeration or any set) is used. So if we do not want these products, the search would be done using NOT IN:
ITEM_ID NOT IN ("1"; "5"; "30"; "50")
Use enumeration searches using the IN operator. Data will regenerate faster, and you will not slow down Mergado's performance with hundreds of values.