June 18, 2013

Post: The small improvements of MySQL 5.6: Duplicate Index Detection

to be exact): mysql> ALTER TABLE test ADD INDEX (col2); Query OK, 0 rows affected (0.36 sec) Records: 0 Duplicates: 0 Warnings: 0 mysql> ALTER TABLEint(11) default null # `col3` varchar(200) default null # To remove this duplicate index, execute: ALTER TABLE

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

VARCHAR(255) “title” and “details” with a TEXT “body”. CREATE TABLE `dir_test_innodb` ( `id` int(10) unsigned NOT NULL, `full_name` varcharto CREATE more than one at a time. If you try it, this is what happens: mysql> alter table

Post: Hijacking Innodb Foreign Keys

to make it happen: CREATE TABLE `parent` ( `parent_id` int(11) NOT NULL, `v` varcharmysql> alter table parent rename parentx; Query OK, 0 rows affected (0.05 sec) mysql> drop table

Post: Concatenating MyISAM files

mysql: mysql> use test Database changed mysql> flush tables; Query OK, 0 rows affected (0.00 sec) mysqlmysql> alter table test_concat add data varchar(10); Query OK, 0 rows affected (0.01 sec) Records: 0 Duplicates: 0 Warnings: 0 mysql> alter table

Post: Improved InnoDB fast index creation

mysql> ALTER TABLE t MODIFY v VARCHAR(8); Query OK, 4194304 rows affected (1 min 13.69 sec) Records: 4194304 Duplicates: 0 Warnings: 0 mysql> ALTER TABLEtable rebuild on foreign key changes. So adding them back with a separate ALTER TABLE

Post: High-Performance Click Analysis with MySQL

…in a VARCHAR(36)?  When tableschange the lifecycle of your application in advance. What about partitioning in MySQL… by ALTER TABLE — a typical reason toint unsigned not null, clicks int unsigned not null, impressions int unsigned not null, blue_clicks int unsigned not null, blue_impressions int

Post: The Optimization That (Often) Isn't: Index Merge Intersection

…index actually used. To some extent, MySQL 5.0 and later changed this situation …INT NOT NULL DEFAULT 0, status TINYINT UNSIGNED NOT NULL DEFAULT 0, user_type TINYINT UNSIGNED NOT NULL DEFAULT 0, username VARCHAR…’s no need to go mucking about with server configuration, altering the table structure, …

Post: PROCEDURE ANALYSE

varchar(128) | NO | MUL | | | | uid | int(11) | NO | MUL | 0 | | | status | int(11) | NO | MUL | 1 | | | created | int(11) | NO | MUL | 0 | | | changed | intto do an ALTER TABLE