Hi Patrick,
In your "AmazingView"
can you show us how are u handling the filter is it with LIKE predicate?
Two options:
1) Use If condition - If Input parameter = % then remove the where condition from the query
2) Use LIKE predicate
Do let me know.
Regards,
Krishna Tangudu