irrelevant multi-column index yields incredible speedup!

2002-11-21 Thread johnt
Hello, Adding an irrelevant second column to an index instead of just a single column index gives an incredible speedup and I don't know why! (server version: 3.23.53a running P133 32 megs ram - not a speedy machine) I have a bunch of records with the relevant columns being: id

Re: irrelevant multi-column index yields incredible speedup!

2002-11-21 Thread Dan Nelson
In the last episode (Nov 21), [EMAIL PROTECTED] said: Adding an irrelevant second column to an index instead of just a single column index gives an incredible speedup and I don't know why! If you then remove the index, is it still fast? Maybe you are just seeing the results of mysql rebuilding

Re: irrelevant multi-column index yields incredible speedup!

2002-11-21 Thread johnt
Dan, thanks for your reply. When I changed the table definition to use the single index and the multi-index I reloaded the data from scratch each time. (I did the trials many times from scratch just to be sure and I do get consistent results) I also just did an optimize table as you suggest