MySQL Forums
Forum List  »  Newbie

indexing on every column?
Posted by: Phil Smy
Date: November 19, 2009 07:06AM

We have a table (events) that has many columns.
Through a user interface we let people search on any combination of columns, and on the date columns we use ranges too.
We also order by the starting_time column.

How can I index this column to get good performance? We have 100k+ rows in this table and it is taking forever to search on.

Any help appreciated!

Table is listed below.

CREATE TABLE `events` (
`id` int(11) NOT NULL auto_increment,
`type` varchar(255) default NULL,
`starting_time` datetime default NULL,
`description` varchar(255) default NULL,
`info` varchar(255) default NULL,
`position` int(11) default NULL,
`event_path_id` int(11) default NULL,
`state` varchar(255) default NULL,
`program_number` int(11) default NULL,
`omr_number` varchar(255) default NULL,
PRIMARY KEY (`id`),
) ENGINE=InnoDB AUTO_INCREMENT=31824 DEFAULT CHARSET=latin1

Options: ReplyQuote


Subject
Written By
Posted
indexing on every column?
November 19, 2009 07:06AM
November 19, 2009 07:09PM
November 19, 2009 09:29PM
November 20, 2009 02:17AM
November 20, 2009 07:11AM
November 20, 2009 07:17AM
November 20, 2009 10:42AM
November 22, 2009 01:38PM
November 22, 2009 04:13PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.