FullText Search Indexing

  • Hello!

    I have a table

    create table FY_Objects

    (

    ID bigint identity primary key,

    CategoryID bigint,

    Title nvarchar(240)

    );

    create index ix_ttt_id_cat

    on FY_Objects(ID, CategoryID)

    I have Fultext index on Title column.

    The following query

    select CategoryID, COUNT(*)

    from FY_Objects with(nolock)

    where contains(*, 'example')

    group by CategoryID

    order by COUNT(*) desc;

    takes about 300ms on 13 million rows (all rows loaded in cache, ~100,000 rows contain 'example').

    Query plan is attached to the message. I see that SQL Server goes to another index for each row that was found in Fulltext index.

    Is it possible to include somehow CategoryID into the FullText Index as I do for regular indexes? Or are there other ways to speed-up my query?

    thanks in advance.

    Anton Burtsev

  • That may help:

    http://connect.microsoft.com/SQLServer/feedback/details/208636/enhance-full-text-index-to-include-other-non-text-columns

    It's still applicable to 2008.

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • Eugene,

    This helps in search scenario, not grouping.

    Do you know any other fulltext solution that allow fast grouping?

    Anton Burtsev

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply