Active
Project:
DB Tuner
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
14 May 2010 at 08:09 UTC
Updated:
14 May 2010 at 16:55 UTC
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
Comment #1
mikeytown2 commented