Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

SQL 2008 integrated Full-Text search - VERY slow queries!

 
Goto page Previous  1, 2
   Database Help (Home) -> Full Text RSS
Next:  MDB with only linked tables growing tremendously  
Author Message
OGG

External


Since: Nov 30, 2008
Posts: 12



(Msg. 16) Posted: Tue Dec 02, 2008 5:38 am
Post subject: Re: SQL 2008 integrated Full-Text search - VERY slow queries! [Login to view extended thread Info.]
Archived from groups: microsoft>public>sqlserver>fulltext (more info?)

Results:
http://itye.no-ip.com/vlad/report1.zip

(It took about 14 seconds to complete...)

 >> Stay informed about: SQL 2008 integrated Full-Text search - VERY slow queries! 
Back to top
Login to vote
OGG

External


Since: Nov 30, 2008
Posts: 12



(Msg. 17) Posted: Tue Dec 02, 2008 5:40 am
Post subject: Re: SQL 2008 integrated Full-Text search - VERY slow queries! [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Results:
http://itye.no-ip.com/vlad/report1.zip

(It took about 14 seconds to complete...)

Thanks for not giving up on me Smile

Itay.

 >> Stay informed about: SQL 2008 integrated Full-Text search - VERY slow queries! 
Back to top
Login to vote
OGG

External


Since: Nov 30, 2008
Posts: 12



(Msg. 18) Posted: Tue Dec 02, 2008 5:43 am
Post subject: Re: SQL 2008 integrated Full-Text search - VERY slow queries! [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Back to top
Login to vote
Hilary Cotter3

External


Since: Aug 28, 2004
Posts: 458



(Msg. 19) Posted: Wed Dec 03, 2008 8:57 am
Post subject: Re: SQL 2008 integrated Full-Text search - VERY slow queries! [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

OK, we have halved our IO, this is a step if not a leap in the right
direction.

Let's try this now. This is your proc. Create it in the same database as you
have the noise table and the splitstring function. After you have created
the proc execute it and send me the execution plan. Run the test 1 time, and
then run it 10 times and time the results of the last 10 times.

Then send me results of an execution with set statistics io on.


create proc SearchMe(@searchParagraph varchar(8000))
as
set nocount off
select @searchParagraph=LOWER(@searchparagraph)
declare @len int
declare @counter int
declare @char char
set @counter=0
declare @newstr varchar(8000)
set @newstr=' '
set @len=LEN(@searchParagraph)
while @counter<@len
begin
select @char=''
select @char=case
when ascii(SUBSTRING(@searchparagraph,@counter,1)) between 97 and 122
then SUBSTRING(@searchparagraph,@counter,1)
else ' '
end
select @newstr=@newstr+@char
select @counter=@counter+1
end
declare @table table(word varchar(500))
insert into @table
select distinct outparam from dbo.SplitString(@newstr,' ') where outparam
not in (select noiseword from Noise)
set @searchParagraph=CHAR(39)
select @searchParagraph=@searchParagraph+word +char(39)+' OR ' + char(39)
from @table
select @searchParagraph=reverse(substring(reverse(@searchParagraph),6,8000))
declare @table1 table(id int, primary key (id))
insert into @table1
select [key] from CONTAINSTABLE(tblDirectory2,(Title,Description),
@searchparagraph, LANGUAGE 'English' )
select d.FirstTopic as Topic, COUNT(D.ID) count from tblDirectory2 d
join @table1 r
on d.Id=r.id
group by d.FirstTopic
order by count desc
GO

"OGG" wrote in message

> Results:
> http://itye.no-ip.com/vlad/report1.zip
>
> (It took about 14 seconds to complete...)
 >> Stay informed about: SQL 2008 integrated Full-Text search - VERY slow queries! 
Back to top
Login to vote
Hilary Cotter3

External


Since: Aug 28, 2004
Posts: 458



(Msg. 20) Posted: Wed Dec 03, 2008 9:11 am
Post subject: Re: SQL 2008 integrated Full-Text search - VERY slow queries! [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Also create these two indexes.

create index Numbers1 on numbers(number)
create index noise1 on noise(noiseword)



"Hilary Cotter" wrote in message

> OK, we have halved our IO, this is a step if not a leap in the right
> direction.
>
> Let's try this now. This is your proc. Create it in the same database as
> you have the noise table and the splitstring function. After you have
> created the proc execute it and send me the execution plan. Run the test 1
> time, and then run it 10 times and time the results of the last 10 times.
>
> Then send me results of an execution with set statistics io on.
>
>
> create proc SearchMe(@searchParagraph varchar(8000))
> as
> set nocount off
> select @searchParagraph=LOWER(@searchparagraph)
> declare @len int
> declare @counter int
> declare @char char
> set @counter=0
> declare @newstr varchar(8000)
> set @newstr=' '
> set @len=LEN(@searchParagraph)
> while @counter<@len
> begin
> select @char=''
> select @char=case
> when ascii(SUBSTRING(@searchparagraph,@counter,1)) between 97 and 122
> then SUBSTRING(@searchparagraph,@counter,1)
> else ' '
> end
> select @newstr=@newstr+@char
> select @counter=@counter+1
> end
> declare @table table(word varchar(500))
> insert into @table
> select distinct outparam from dbo.SplitString(@newstr,' ') where
> outparam not in (select noiseword from Noise)
> set @searchParagraph=CHAR(39)
> select @searchParagraph=@searchParagraph+word +char(39)+' OR ' + char(39)
> from @table
> select
> @searchParagraph=reverse(substring(reverse(@searchParagraph),6,8000))
> declare @table1 table(id int, primary key (id))
> insert into @table1
> select [key] from CONTAINSTABLE(tblDirectory2,(Title,Description),
> @searchparagraph, LANGUAGE 'English' )
> select d.FirstTopic as Topic, COUNT(D.ID) count from tblDirectory2 d
> join @table1 r
> on d.Id=r.id
> group by d.FirstTopic
> order by count desc
> GO
>
> "OGG" wrote in message
>
>> Results:
>> http://itye.no-ip.com/vlad/report1.zip
>>
>> (It took about 14 seconds to complete...)
>
 >> Stay informed about: SQL 2008 integrated Full-Text search - VERY slow queries! 
Back to top
Login to vote
OGG

External


Since: Nov 30, 2008
Posts: 12



(Msg. 21) Posted: Wed Dec 03, 2008 10:03 am
Post subject: Re: SQL 2008 integrated Full-Text search - VERY slow queries! [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Alright,
running the proc 10 times in a row took 14983 milliseconds.

Here I attached a report of the first execution and than a report of
the 10 times execution as well as the plan.

http://itye.no-ip.com/vlad/Execution_plan_2.zip
 >> Stay informed about: SQL 2008 integrated Full-Text search - VERY slow queries! 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
SQL 2008 Full text indexing - Hi all, Does anyone know if there is a list of improvements to FT indexing in SQL 2008? So far I've heard that it's integrated into the SQL Server engine and no longer a seperate process? I'm assuming this has memory implications like using AWE etc....

FULL TEXT SEARCH PROBLEM - I have a table which has a record T17.1.516.32 I try SELECT Urun_Ad as guUrun_Ad FROM TBL_URUNLER WHERE ( (CONTAINS(Urun_Ad, '"*t17.1.516.32*"' ) )) it returns T17.1.516.32 i try SELECT Urun_Ad as guUrun_Ad FROM TBL_URUNLER WHERE (..

Benchmark for Full Text Search - Hi, We are currently using a 3rd party Search Engine to search our application content in SQL server. Could someone please point me to Benchmark data for the FTS service? I am interested in switching to FTS even if the Performance numbers are..

Full text Pattern Search - Hi, Would below mentioned thing is possible in sqlserver 2005 full text. User Table - Table Id Description - Column name 1 'Mission Impossible' - a row I want to ge this row if the search criteria is 'pos'. it is simillar to ' %pos%' in like....

full text search problem!!.....help - hello my full text queries have suddenly stop functioning,when I press execute tab, its keep on saying "Executing query" for hours.Can any one tell me how to resolve this problem. I am using SQL server 2005.In the enterprise manager, I can see ...
   Database Help (Home) -> Full Text All times are: Pacific Time (US & Canada)
Goto page Previous  1, 2
Page 2 of 2

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]