>>>>> "Ken" == Ken Carroll <kenc@stripped> writes:
Ken> I have noticed that MySQL slows down considerably when using a
Ken> as follows:
Ken> SELECT *
Ken> FROM T
Ken> WHERE T.x IN ( 1, 2, 3, 4, 5, 6 ....., 120)
Ken> Are these values stored as a list or as a hash? If they are a
Ken> hash, is there some value I can change so that the default hash
Ken> size is increased? If it's a list, I guess I'm stuffed. :-(
MySQL uses a binary tree if all entries in the IN list are constants.
Did you try to use EXPLAIN on the above query? Is T.x really indexed?