I have a view that returns 2 ints from a table using a CTE. If I query the view like this it runs in less than a second
SELECT * FROM view1 WHERE ID = 1
You could add an OPTIMIZE FOR hint to your query, e.g.
DECLARE @id INT = 1 SELECT * FROM View1 WHERE ID = @id OPTION (OPTIMIZE FOR (@ID = 1))