Avoid queries from views