Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formula taking exponentially longer to parse #1141

Open
philhawthorn opened this issue Feb 26, 2024 · 1 comment
Open

Formula taking exponentially longer to parse #1141

philhawthorn opened this issue Feb 26, 2024 · 1 comment

Comments

@philhawthorn
Copy link

Hi,

The following formula:

IF(INCLUDES( Account__r.Field__c , "a"), "a ", NULL)

Parses in a few MS. However, if I add e.g. 15 more conditions:

IF(INCLUDES(  Account__r.Field__c , "a"), "a ", 
IF(INCLUDES(  Account__r.Field__c , "a"), "a ",
IF(INCLUDES(  Account__r.Field__c , "a"), "a ",
IF(INCLUDES(  Account__r.Field__c , "a"), "a ",
IF(INCLUDES(  Account__r.Field__c , "a"), "a ",
IF(INCLUDES(  Account__r.Field__c , "a"), "a ",
IF(INCLUDES(  Account__r.Field__c , "a"), "a ",
IF(INCLUDES(  Account__r.Field__c , "a"), "a ",
IF(INCLUDES(  Account__r.Field__c , "a"), "a ",
IF(INCLUDES(  Account__r.Field__c , "a"), "a ",
IF(INCLUDES(  Account__r.Field__c , "a"), "a ",
IF(INCLUDES(  Account__r.Field__c , "a"), "a ",
IF(INCLUDES(  Account__r.Field__c , "a"), "a ",
IF(INCLUDES(  Account__r.Field__c , "a"), "a ",
IF(INCLUDES(  Account__r.Field__c , "a"), "a ",
IF(INCLUDES(  Account__r.Field__c , "a"), "a ", NULL))))))))))))))))

It takes ~2 seconds. And then adding 1 more takes 4 seconds, then 1 more 8, 16 etc etc. The actual formula I have is 37 :(

Thanks

@philhawthorn
Copy link
Author

I just noticed 1015 which looks the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant