Hi,
Is it a recommended practice to do data lookup in route constraints, or should they be kept lightweight?
I would like to have a route constraint that triggers a 404 if a user tries to access a product that does not exist - i.e.:
/en-US/products/myproductcode
But I'm concerned about the performance implications, even if the lookup is trivial.
Thanks