Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Does it make any difference?
Quickness of the evaluation, memory used...
What is the suggested use?
Is loading all the fields (via using "Entity is of bundle") in the Rules data selector detrimental in any way?
Or maybe it's even faster/better than checking for (loading) the single field ("Entity has field")?
Thank you
Comments
Comment #2
kopeboy CreditAttribution: kopeboy commentedI will start listing some PROs & Cons:
Entity has field:
PRO: could be more robust (future proof) since I can use the same field on different bundles without needing to update the Rules
CON: if I will need to act on more fields I will have to add every one
Comment #3
TR CreditAttribution: TR commentedWell the best way to find out is to test it yourself. I doubt the actual condition has much effect after all the overhead of running a Rule, but as a guideline I would go with whichever way had the fewest conditions/actions.