Hi Isomorphic,
in 12.0p, the hasRelatedRecord-Validator seems to do a fetch with all fields instead of an outputs="pkField", which might result in a big query.
This then is a performance issue in BatchUploader, where this query might be run many times.
Also, this could be optimized with a result cache like here, although this might be more complicated here, as this check is also run for every other value change and not just BatchUploader, I assume.
Could you change outputs="pkField" and evaluate if the result cache is also an easy change?
Thanks in advance & Best regards
Blama
in 12.0p, the hasRelatedRecord-Validator seems to do a fetch with all fields instead of an outputs="pkField", which might result in a big query.
This then is a performance issue in BatchUploader, where this query might be run many times.
Also, this could be optimized with a result cache like here, although this might be more complicated here, as this check is also run for every other value change and not just BatchUploader, I assume.
Could you change outputs="pkField" and evaluate if the result cache is also an easy change?
Thanks in advance & Best regards
Blama