Somebody knows or remember what would be the limit...
# suitescript
a
Somebody knows or remember what would be the limit for:
Copy code
["formulatext: case when {itemid} in ('" + aItemNames.join("','") + "') then 'Y' else 'N' end","is","Y"]
b
1000
a
Thanks, do you have any metrics about what is faster? this or: itemid, IS, itemName1, 'OR' itemid, IS, itemName2 n... What would be the limit of the chained ORs?
b
i believe last time i tested the in clause was faster, though i have also seen just chained ors being faster
👍 1
i believe you run out of governance before you run out of ors, so no limit to the number
the difference in code between the two isnt large, you can probably test both and see which is faster for your purposes
👍 1