Why do SQL FullText queries slow down when you OR?

前端 未结 3 1709
囚心锁ツ
囚心锁ツ 2021-02-20 03:12

In SQL Server (2008), I have a FullText index on two columns, call them Table1.FirstNames and Table2.LastNames. After profiling some queries, I came u

3条回答
  •  灰色年华
    2021-02-20 03:43

    Does changing to using ContainsTable help?

    It did here Adding more OR searches with CONTAINS Brings Query to Crawl

    And the same answerer (Joe Stefanelli) managed to bring about a similar improvement by changing FREETEXT predicates combined with OR to a FREETEXTTABLE here SQL Server full text query across multiple tables - why so slow?

提交回复
热议问题