I'm just about to write a query that includes a WHERE isok=1
. As the name implies, isok
is a boolean field (actually a TINYINT(1) UNSIGNED
that is set to 0 or 1 as needed).
Is there any performance gain in indexing this field? Would the engine (InnoDB in this case) perform better or worse looking up the index?
See Question&Answers more detail:os