June 19, 2013

Post: Join Optimizations in MySQL 5.6 and MariaDB 5.5

MySQL can employ many other optimizations like for example if columns other then the secondary key columnschanged to become sequential. The two other most important numbers are values for Innodb_buffer_pool_reads and Innodb_data… run tests to see what specific types of queries would benefit from Hash…

Post: Knowing what pt-online-schema-change will do

… –dry-run and –print, pt-online-schema-change changes nothing but prints a lot of information…never knows. Are the columns used correctly given their data types and definitions?  If a column is defined as “…bugs in the tool, problems with the MySQL server (privileges, etc.), or other oddities, there…

Post: Hijacking Innodb Foreign Keys

… not change “parent_id” column you can update data just fine, however if you want to change the parent_id column, even if you change it… satisfy foreign key conditions (have column child table is referencing and have it of proper type and indexed): mysql> set foreign_key_checks…

Post: Ultimate MySQL variable and status reference list

MySQL …_show_column_typesblogpercona….change_bufferingblogpercona.commanual innodb_checksumsblogpercona.commanual innodb_commit_concurrencyblogpercona.commanual innodb_concurrency_ticketsblogpercona.commanual innodb_data_file_pathblogpercona.commanual Innodb_data… slave_type_conversionsblogpercona…

Post: Data compression in InnoDB for text and blob fields

… certain types of columns in a table while leaving other columns uncompressed…any query or application logic changes so we chose to …MySQL manual states: This setting may still be useful for tables with many long BLOB, VARCHAR or TEXT columns… them new and migrate data, or affect existing tables with…

Post: When is MIN(DATE) != MIN(DATE) ?

… INDEX `uid` (uid, update_time), INDEX `bar` (some_other_columns) …. ) ENGINE=InnoDB; When he ran this query: … The documentation for MySQL 5.5 states that the supported range for the DATETIME type is 1000-01… the other hand, it hasn’t actually changed any data in those DATETIME values, and now it’s…

Post: MySQL-Memcached or NOSQL Tokyo Tyrant - part 3

MySQL and Memcached, and later on other NoSQL solutions.  Tokyo actually allows you to use several types… clause and search individual columns, and a ton more “database…better off not storing my data in MySQL and instead looking …, and data size increases how does performance differ or change?  One …

Post: MySQL Prepared Statements

…best performance in your application using MySQL you should learn about prepared statements… is pretty expensive especially for certain data types. Furthermore BLOBs require escaping as …data so query changes it meaning. You also can bind direct variables to return columns – which means not only data

Post: ANALYZE: MyISAM vs Innodb

…you can allow more data change while your index stats…values change: mysql> analyze table antest_innodb; +——————–+———+———-+———-+ | Table | Op | Msg_type | Msg_text | …column “c” to NULL in both tables and see how values change: mysql

Post: InnoDB Full-text Search in MySQL 5.6 (part 1)

changed. NOTE 2: For purposes of this discussion, I used two separate datacolumn, however, MySQL apparently has no problem with either of the following statements: mysqlmysql> optimize table dir_test_innodb; +———————-+———-+———-+———-+ | Table | Op | Msg_type | Msg_…