Improve validation


#1

Is it possible to merge all validation requests to one big for better performance, to use something like union in sql


#2

It’s impossible and bad design. How can Validator know, which tables to join and use which foreign keys.

Also Validator is beyond database and one rule shouldn’t worry about the other rules or fields.

If you want, you can write your own custom rule and build the union query