How to add more OR searches with CONTAINS Brings Query to Crawl?

前端 未结 4 1610
我寻月下人不归
我寻月下人不归 2020-12-17 20:39

I have a simple query that relies on two full-text indexed tables, but it runs extremely slow when I have the CONTAINS combined with any additional

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-17 21:05

    We've experience the exact same problem and at the time, put it down to our query being badly formed - that SQL 2005 had let us get away with it, but 2008 wouldn't.

    In the end, we split the query into 2 SELECTs that were called using an IF. Glad someone else has had the same problem and that it's a known issue. We were seeing queries on a table with ~150,000 rows + full-text going from < 1 second (2005) to 30+ seconds (2008).

提交回复
热议问题