Why do SQL FullText queries slow down when you OR?

前端 未结 3 1734
囚心锁ツ
囚心锁ツ 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?

    0 讨论(0)
  • 2021-02-20 03:45

    Perhaps you should read this: SQL Server 2005 Full-Text Queries on Large Catalogs: Lessons Learned.

    0 讨论(0)
  • 2021-02-20 03:51

    I'd take a look at the execution plan for each of those. I'm guessing you will learn quite a bit from that.

    Here is a decent link that will show you how to display the execution plan as well as some tips on interpreting it.

    0 讨论(0)
提交回复
热议问题