Wednesday, 28 August 2013

MySQL Table indexation

MySQL Table indexation

I have table with 11 fields. Not i'm making SELECT query to get data for
specific reason.
SELECT `id` FROM `A`
WHERE b IS NOT NULL,
c IS NOT NULL,
d IS NOT NULL
ORDER BY e DESC
I have made index on (b,c,d) AND (e)
MySQL EXPLAIN shows possible_keys that group index, but key NULL, and in
extra section there is - Using where; Using filesort

No comments:

Post a Comment