Re: Single Column Indexes Vs. Multi Column

2008-01-11 Thread C.R.Vegelin
10, 2008 6:57 AM Subject: Re: Single Column Indexes Vs. Multi Column Michael Stearne schrieb: For a query like: SELECT id FROM properties WHERE `Country` = 'USA' AND Type='Residential' Is an multi-column index that is (Country, Type) better or worse or the same as a single index Country

Re: Single Column Indexes Vs. Multi Column

2008-01-11 Thread Anup Shukla
C.R.Vegelin wrote: Sebastian, MySQL uses only one index for searching. As far as I know this applies to all MySQL versions, right ? AFAIK, MySQL (atleast from version 5.0 onwards) is capable of using multiple indexes. -- Regards, Anup Shukla -- MySQL General Mailing List For list archives:

Re: Single Column Indexes Vs. Multi Column

2008-01-11 Thread Sebastian Mendel
C.R.Vegelin schrieb: Sebastian, MySQL uses only one index for searching. As far as I know this applies to all MySQL versions, right ? IMHO, but i heard elselike too, but cannot find any proof in the manual ... -- Sebastian -- MySQL General Mailing List For list archives:

Re: Single Column Indexes Vs. Multi Column

2008-01-11 Thread Sebastian Mendel
Anup Shukla schrieb: C.R.Vegelin wrote: Sebastian, MySQL uses only one index for searching. As far as I know this applies to all MySQL versions, right ? AFAIK, MySQL (atleast from version 5.0 onwards) is capable of using multiple indexes. i have heard of something similar too, but cannot

Re: Single Column Indexes Vs. Multi Column

2008-01-11 Thread Sebastian Mendel
Perrin Harkins schrieb: On Jan 11, 2008 7:22 AM, Sebastian Mendel [EMAIL PROTECTED] wrote: i can only find one source in the manual, where MySQL is using more than on index: http://dev.mysql.com/doc/refman/6.0/en/index-merge-optimization.html Uh, how many sources do you need? 1? It

Re: Single Column Indexes Vs. Multi Column

2008-01-11 Thread Perrin Harkins
On Jan 11, 2008 7:22 AM, Sebastian Mendel [EMAIL PROTECTED] wrote: i can only find one source in the manual, where MySQL is using more than on index: http://dev.mysql.com/doc/refman/6.0/en/index-merge-optimization.html Uh, how many sources do you need? It uses multiple indexes, just like it

Re: Single Column Indexes Vs. Multi Column

2008-01-11 Thread Sebastian Mendel
Sebastian Mendel schrieb: Anup Shukla schrieb: C.R.Vegelin wrote: Sebastian, MySQL uses only one index for searching. As far as I know this applies to all MySQL versions, right ? AFAIK, MySQL (atleast from version 5.0 onwards) is capable of using multiple indexes. i have heard of

Single Column Indexes Vs. Multi Column

2008-01-09 Thread Michael Stearne
For a query like: SELECT id FROM properties WHERE `Country` = 'USA' AND Type='Residential' Is an multi-column index that is (Country, Type) better or worse or the same as a single index Country and another single index Type. Thanks, Michael -- MySQL General Mailing List For list

Re: Single Column Indexes Vs. Multi Column

2008-01-09 Thread Sebastian Mendel
Michael Stearne schrieb: For a query like: SELECT id FROM properties WHERE `Country` = 'USA' AND Type='Residential' Is an multi-column index that is (Country, Type) better or worse or the same as a single index Country and another single index Type. better two single indexes depending on