| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Tompkins Neil | Date: | October 6 2011 2:59pm |
| Subject: | MySQL Indexes | ||
| View as plain text | |||
Hi, Can anyone help and offer some advice with regards MySQL indexes. Basically we have a number of different tables all of which have the obviously primary keys. We then have some queries using JOIN statements that run slowly than we wanted. How many indexes are recommended per table ? For example should I have a index on all fields that will be used in a WHERE statement ? Should the indexes be created with multiple fields ? A example of two basic queries SELECT auto_id, name, score FROM test_table WHERE score > 10 ORDER BY score DESC SELECT auto_id, name, score FROM test_table WHERE score > 10 AND name Like '%Red%' ORDER BY score DESC How many indexes should be created for these two queries ? Thanks, Neil
| Thread | ||
|---|---|---|
| • MySQL Indexes | Tompkins Neil | 6 Oct |
| • Re: MySQL Indexes | Michael Dykman | 6 Oct |
| • Re: MySQL Indexes | Neil Tompkins | 6 Oct |
| • Re: MySQL Indexes | Michael Dykman | 7 Oct |
| • Re: MySQL Indexes | Nuno Tavares | 7 Oct |
| • Re: MySQL Indexes | Brandon Phelps | 7 Oct |
| • Re: MySQL Indexes | Michael Dykman | 7 Oct |
| • Re: MySQL Indexes | Reindl Harald | 7 Oct |
| • Re: MySQL Indexes | Michael Dykman | 7 Oct |
| • Re: MySQL Indexes | Neil Tompkins | 7 Oct |
| • Re: MySQL Indexes | Michael Dykman | 7 Oct |
| • Re: MySQL Indexes | Tompkins Neil | 7 Oct |
| • Re: MySQL Indexes | Michael Dykman | 7 Oct |
| • Re: MySQL Indexes | Neil Tompkins | 7 Oct |
| • Re: MySQL Indexes | mos | 7 Oct |
