jdaugherty commented on issue #15276:
URL: https://github.com/apache/grails-core/issues/15276#issuecomment-3660897036

   Playing devil's advocate here: how do we know what's valid & what's not (or 
in other words, which are expensive and which are not)?  It looks like the bug 
fix was once skip validate was applied, it was applying to *all* domains 
(clearly wrong).  
   
   It sounds like you're asking for a way to opt out of specific domain 
validation or a way to turn off validation for an entire transaction, yes?  I'm 
assuming the expensive validations are mostly closures? Wouldn't it be easier 
to handle this at the validator level, or more specifically the constraint 
level?  You could add a custom constraint that invokes your closures based on a 
local thread variable and then you could decide when to opt-in or opt-out based 
on setting that variable.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to