I want to speed up the following query
There are two conditions in the WHERE clause (see below query for reference)
Currently, it takes about 60 seconds. However
Here's one option that might speed it up using coalesce:
coalesce
... where contains(b.BookTitle, coalesce(@Query,b.BookTitle)) ...