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

Indexing too slow?

 
   Database Forums (Home) -> Full Text RSS
Next:  Invitation to join my usergroup "ORACLE ERP/..  
Author Message
Nightcrawler

External


Since: Dec 07, 2007
Posts: 10



(Msg. 1) Posted: Wed Oct 01, 2008 6:00 am
Post subject: Indexing too slow?
Archived from groups: microsoft>public>sqlserver>fulltext (more info?)

I have a simple search engine applicaton. Everytime a search is being
made I look in the database using a simple select query if the keyword
has been searched for in the last week. If not, I then go out and
search a number of websites using a httprequest, parse out and insert
the results into my catalog table (which has a fulltext index). Right
after I insert the rows into the table I use a CONTAINSTABLE query to
pull the results I just added and anything else that matches that has
already been added to the table from previous search results.

The problem is that the latest search results are not indexed fast
enough. So when I add the latest results and run the CONTAINSTABLE
query my latest results are not included. If I however put the thread
to sleep for 2 seconds and then execute the query my latest additions
do show up.

My queston is, is there a way to do this without using the thread
sleep? Is there a way to index my results instantly and making them
available without using a 2 second pause? Has anyone else had similar
problems?

Any advice is highly appreciated. Thanks for your help.

 >> Stay informed about: Indexing too slow? 
Back to top
Login to vote
Russell Fields

External


Since: Feb 21, 2007
Posts: 457



(Msg. 2) Posted: Wed Oct 01, 2008 9:20 am
Post subject: Re: Indexing too slow? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Nightcrawler,

Full-text indexing is asynchronous to your updates, so I don't believe there
is a way to avoid the delay. (And asynchronous is good for things that take
time, like parsing a string apart, filtering it for noise words, then adding
0 to thousands of entries to the full-text index. I would not like to wait
for that to happen to me on every update.)

I believe that SQL Server 2005 has proved to be faster than SQL Server 2000.
And Simon Sabin's blog suggest improvements in SQL Server 2008. But I am
unaware of anybody saying that full-text indexing is instantaneous.
http://sqlblogcasts.com/blogs/simons/archive/2008/02/20/SQL-Server-200...-iFTS-P

I might compare triggering the full-text indexing of a new or updated row to
putting an update trigger on a table that starts a SQL Agent job. This
trigger fires immediately on the update, but the SQL Agent job takes some
asynchronous time to get its part done.

RLF

"Nightcrawler" wrote in message

>I have a simple search engine applicaton. Everytime a search is being
> made I look in the database using a simple select query if the keyword
> has been searched for in the last week. If not, I then go out and
> search a number of websites using a httprequest, parse out and insert
> the results into my catalog table (which has a fulltext index). Right
> after I insert the rows into the table I use a CONTAINSTABLE query to
> pull the results I just added and anything else that matches that has
> already been added to the table from previous search results.
>
> The problem is that the latest search results are not indexed fast
> enough. So when I add the latest results and run the CONTAINSTABLE
> query my latest results are not included. If I however put the thread
> to sleep for 2 seconds and then execute the query my latest additions
> do show up.
>
> My queston is, is there a way to do this without using the thread
> sleep? Is there a way to index my results instantly and making them
> available without using a 2 second pause? Has anyone else had similar
> problems?
>
> Any advice is highly appreciated. Thanks for your help.

 >> Stay informed about: Indexing too slow? 
Back to top
Login to vote
Nightcrawler

External


Since: Dec 07, 2007
Posts: 10



(Msg. 3) Posted: Wed Oct 01, 2008 9:25 am
Post subject: Re: Indexing too slow? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Russell,

Thank you very much for your input. I kind of suspected what you just
confirmed. I will have to figure out another way around this.

Thanks
 >> Stay informed about: Indexing too slow? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
No more indexing on text - Hello, I store text files into an SQL Express DB, in a varbinary field. I have change the naming of some columns in my indexed DB, and I have changed the indexed column: now, I have two varbinary(max) columns in my table, one is indexed but not the..

indexing method - I have 2 tables that I would like to implement full text indexing on. I'm just not sure if I should use incremental or change log updating. Each table has 12 fields, I am only implementing the full text index on 1 column in each table. There will..

Multilingual content indexing - Hi there, We have a Windows Sharepoint Services installation and are indexing its content. I have a question regarding the index so I thought it might be better to post here instead of the WSS newsgroups. Anyway, here we go: We have thousands of..

Is this possible with Full Text Indexing? - (SQL Server 2000, SP4) Hello all! I am wrestling with a problem that I hope someone can help me with. I have a series of related tables (fairly normalized), each of which has a textual column whose data will, for the most part, be unique from the..

Difference between indexing txt or word doc files, help! - Hi, I'm putting together a system and one of the requirements is to have a searchable CV function. I've got all the code to load the files on to the image fields, I've indexed and got it kinda working. Before I go to far down the road what is your..
   Database Forums (Home) -> Full Text All times are: Pacific Time (US & Canada)
Page 1 of 1

 
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 ]