| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Michael T. Babcock | Date: | November 18 2002 9:22pm |
| Subject: | Re: feature suggestion - indexes with "where" clause or similar | ||
| View as plain text | |||
Neulinger, Nathan wrote: >It's actually relatively speedy WITH the bad index, but maintaining that >index (given it's lopsided nature) is very expensive. > >Yes, the point is to ONLY index the row if it matches the restriction. > > To clarify, if MySQL is indexing a binary value with lopsided distribution, simply only keep an index of record locations for the less-likely value. The more-likely value will end up being table-scanned. 'true', 'true', 'false', 'true', 'true', 'true' ... 'false' -> 3rd row. ... 'true' -> read the whole thing. -- Michael T. Babcock C.T.O., FibreSpeed Ltd. http://www.fibrespeed.net/~mbabcock
| Thread | ||
|---|---|---|
| • feature suggestion - indexes with "where" clause or similar | Nathan Neulinger | 15 Nov |
| • re: feature suggestion - indexes with "where" clause or similar | Egor Egorov | 18 Nov |
| • Re: feature suggestion - indexes with "where" clause or similar | Jeremy Zawodny | 18 Nov |
| • Re: feature suggestion - indexes with "where" clause or similar | Daniel Koch | 18 Nov |
| • RE: feature suggestion - indexes with "where" clause or similar | Dean Harding | 18 Nov |
| • Re: feature suggestion - indexes with "where" clause or similar | Jeremy Zawodny | 18 Nov |
| • RE: feature suggestion - indexes with "where" clause or similar | Nathan Neulinger | 18 Nov |
| • Re: feature suggestion - indexes with "where" clause or similar | Michael T. Babcock | 18 Nov |
| • Re: feature suggestion - indexes with "where" clause or similar | Daniel Koch | 19 Nov |
| • Re: feature suggestion - indexes with "where" clause or similar | Benjamin Pflugmann | 19 Nov |
| • Re: feature suggestion - indexes with "where" clause or similar | Dan Nelson | 19 Nov |
