Home » Performance » MySQL » Table with searchable string column
Table with searchable string column [message #4] Fri, 11 August 2006 06:16 Go to previous message
vadim1508  is currently offline vadim1508
Messages: 9
Registered: August 2006
Junior Member
Hi,

I have a table (about 5 columns), which is loaded once and never updated. One of its columns is string (titles up to 100 chars). The content of this column will be searched as the whole value (select * from books where title = 'Effective C++';) or as a single word (select * from books where title like '%C++%';). The table contains millions raws. Selects are done mostly on this string column.

What is the effective design?
Is creating index for my string column is sufficient? I am doing LOAD DATA LOCAL INFILE. What is faster to create an index while creating a table or first load data without index an only than create an index?
Do I need index for all 100 chars, if most of the time I have no more than 30-40 chars?
Maybe I need FULLTEXT index?

Thanks a lot for your help!

Vadim

Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Joining many Tables vs. executing many queries
Next Topic:Using Indexes to increase sort performance
Goto Forum:

  


Current Time: Thu Jul 9 15:38:53 EDT 2009

Total time taken to generate the page: 0.12034 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 2.7.7.
Copyright ©2001-2007 FUD Forum Bulletin Board Software

MySQL is a trademark of Sun Microsystems.
InnoDB is a trademark of Oracle Corp.

Percona Performance Forums are a service of Percona, Inc.
Not affiliated with Sun Microsystems or Oracle Corp.