If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Slow performance for fulltext queries

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-07-07, 11:10
madeonmoon madeonmoon is offline
Registered User
 
Join Date: Oct 2003
Posts: 15
Slow performance for fulltext queries

Hello All,

My server is: mysql Ver 14.7 Distrib 4.1.21, for pc-linux-gnu (i686) using readline 4.3)

There are several fields in one table and 2 of the fields have fulltext indexes applied. Both fields are defined as text datatype but one (field_a) contains data that is fewer than 100 characters while the other field (field_b) contains data consisting of 3,000 to 15,000 characters. There are about 10,000 rows in the table.

If I run a fulltext query against both fields, the performance is ~5 times slower than if I only include the field_a in the query. Any idea how the server/index/query can be tweaked so that when larger fields are included in fulltext search performance does not degrade that drastically?

I'd be happy to provide more details if necessary (I did not include the query at this point as I suspect it's the amount of field data rather than the query that's causing slow performance).

Thanks for any pointers!
James

Last edited by madeonmoon; 02-07-07 at 11:23.
Reply With Quote
  #2 (permalink)  
Old 02-07-07, 11:57
madeonmoon madeonmoon is offline
Registered User
 
Join Date: Oct 2003
Posts: 15
FIY: I did have an order by clause in the query and the column in the order by is not field_a or field_b. I tried creating an index on it now and the performance is much better although not as good as if I only use field_a in the query. This may be my only way to optimize it... What do you think?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On