Posted by dalin on May 14, 2010 at 8:09am
3 followers
Jump to:
| Project: | DB Tuner |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Just an idea for if you want to get real fancy.
Lets say a view has a filter on one or more fields and is sorted on one or more fields, if all of these fields are in the same table a composite index would be in order:
filter 1, filter 2, ..., filter N, sort 1, sort 2, ..., sort N.
(If the fields are in different tables you're screwed and MySQL has to create a temp table anyway)
Comments
#1