May 22, 2012

Post: Enum Fields VS Varchar VS Int + Joined table: What is Faster?

VARCHAR and tinyint (+joined table) columns. In practice you can also often use 4th variant which is not comparable directly, which is using integer value and having value…, located in Minnesota and, to make things slower, we‘ll take those records starting from record #10000 making MySQL to discard …

Post: Why Index could refuse to work ?

can see article_id is VARCHAR and this is the problem. Comparing String to Number is not going to usein your application by using “”. You may ask why MySQL can‘t use index inin wrong result for some queries. The thing is there are multiple strings possible for single integer value

Post: To pack or not to pack - MyISAM Key compression

value. It also can be usedMySQL can do binary search inside the page – kind of jumping in the middle and looking at the key valuein how integer primary key is handled. I can‘t see the index size difference between DEFAULT and 1 valuesvarchar

Post: A workaround for the performance problems of TEMPTABLE views

integer values. There are enough values in the table such that a scan of all rows takes a second or two. mysqlcan be shared between views. This example is somewhere in between those two extremes: mysql> create table params ( view_name varchar