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

Advanced Control Field should continue to handle Smart Variables #74

Open
pbchase opened this issue Mar 9, 2020 · 1 comment
Open
Labels

Comments

@pbchase
Copy link
Contributor

pbchase commented Mar 9, 2020

In release 3.3.8, we declared that the Advanced Control Field is deprecated. I think this statement misses the reality of the issue with the advanced control field and exaggerates the problem. We need deprecate field logic and keep smart variables.

The problem was that field logic testing was eating our lunch when the product of record, form and event counts got high. The API call that processes field logic is too expensive to run at every page load across thousands of record * form * event combinations. We tried to optimize this but could barely improve the page load time. Yet taking the calculations out of the advanced control field and instead referencing a field that had the same calculation works fine, because each of the accessed fields was already pre-calculated and stored.

Smart Variables work fine in advanced control fields because they cost about the same as a field lookup.

I think we need to change the text in the warning to say something like "Warning: the use of equations in the Advanced Control Field is deprecated for performance reasons. It will be removed in a future version of this module." Later, we should remove the ability to process calculated fields, not smart variables.

@mschulze0
Copy link

@pbchase if that's the case you might as well turn it into a drop-down menu with pre-set smart variables. Having a text input field where you can only input one variable would be confusing

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

No branches or pull requests

2 participants