I have many tables need to be dynamically filtered based on HOST_NAME() parameter.
First approach is to Subset filtering the join table and join the other tables to it, but this looks to have performance and timeout issues when updating correspondent datapartation.
Second approach is to Subset filtering all the tables and remove the join filters, in order to do this my filter needs to be like : SELECT TitleId FROM Title WHERE DocumentId in ( SELECT DocumentId FROM Document WHERE UnquieId = HOST_NAME())
My question is the second approach possibles, i read that putting the HOST_NAME() in a subquery has too many problems and might not work, Can any one help ?
Thanks,