asp.net - SQL Server full text search too slow -


I am running with SQL Server full-text search issues.

This is taking a minute to run full-text search and join query (see below)

 Select  to * SELECT (row_number ()) ( B as the interesting number), Robank, B. as book, B. Book, B. Books from book titles include B (nolok), in the publications of publications p (nolok) b. P = p. Where in Booky (P. Publishing, France ') or includes (B. book title,' France ')) where 192 and 210 B. For reference, about 500k lines in the table of books and published rule table  
  • I could not put Publcity in BooksCode because SQL Server Only lets you define a full-text index per table.
  • Note: The last part line number is between 200 and 210, just was arbitrarily inserted. I could choose any set of rows and the results still take longer < Li> BookName in book table is a full-text index on NVHAR (255)
  • There is a full text index on the published radians. NVARAR (255).

    Any idea how to improve its performance?

    If you select Sql Server 2012+ then Instead of using OFFSET..FETCH for paging instead of using Row_Number . Something like this

      SELECT p.PublishCity, b.BookKey, b.BookTitle FROM Books b (nolock) Join INNER on publication p (nolock) b.BookKey = p.BookKey where (p PublishCity, 'France') or included in it (B. book title, 'France') by order b. The book's offset 199 rows will be better performance than the next 11 rows only  

    offset-get approach to Row_number .

    for a detailed comparison
  • Comments

    Popular posts from this blog

    python - Overriding the save method in Django ModelForm -

    html - CSS autoheight, but fit content to height of div -

    qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -