June 19, 2013

Post: MySQL and the SSB - Part 2 - MyISAM vs InnoDB low concurrency

…star schema presents some unique challenge to the …All OS caches are dropped at this time …from the buffer pool should be faster than getting them fromALTER TABLE DISABLE KEYS and built the keys with sort via ALTER TABLE ENABLE KEYS. my.cnf [mysqld] datadir=/mnt/mysql56/data basedir=/usr/local/mysql

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

unique key as they suggest, your data won’t load due to unique keydropping FT indexes, it’s entirely possible to DROP multiple FT indexes with InnoDB in the same ALTER TABLEmysql> alter table dir_test_innodb ADD FULLTEXT KEY (full_name, details), ADD FULLTEXT KEY

Post: Improved InnoDB fast index creation

FROM t; Query OK, 2097152 rows affected (10.11 sec) Records: 2097152 Duplicates: 0 Warnings: 0 mysql> ALTER TABLE t ADD KEYUNIQUE indexes in ALTER TABLE are ignored to enforce uniqueness where necessary when copying the data to a temporary table; ALTER TABLE and OPTIMIZE TABLE always process tables

Post: Best kept MySQLDump Secret

from the fact how MySQL‘s Transactions work with DDL, In particular ALTER TABLE. When ALTER TABLE is Performed in many cases it will Create temporary table

Post: InnoDB Full-text Search in MySQL 5.6: Part 2, The Queries!

table=’test/innodb_ft_list2′; Query OK, 0 rows affected (0.00 sec) mysql: INSERT INTO innodb_ft_list2 SELECT * FROM…6 and running ALTER TABLE foo ENGINE=InnoDB. In…dropped/rebuilt the InnoDB index, and tried again. mysql… poses its own unique problems for …KEY to an InnoDB table, be prepared for a table

Post: Working with large data sets in MySQL

… with large data things in MySQL is patience and careful planning. …from backup. You need Patience simply because things are going to take a lot of time. Think about 500GB table for example – ALTER TABLE… primary key and unique indexes using keycache) If it does not performance may drop performance…

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

table with a new column named “foo”.  Notice that the table has a PRIMARY key and another non-unique key…guest_country`, `score` FROM `test`.`t`…Dropping new tableDROP TABLE IF EXISTS `test`.`_t_new`; Dropped new table OK. Notice that the new, altered table created at the beginning is droppedMySQL

Post: Find and remove duplicate indexes

mysql> alter table t add index(name); mysql> alter table t add index(name); mysql> alter table t add index(name); mysql> show create table t\G [...] KEY `name` (`name`), KEY `name_2` (`name`), KEY

Comment: Duplicate indexes and redundant indexes

alter table emp drop index fk_deptid;ERROR 1553 (HY000): Cannot drop index ‘fk_deptid’: needed in a foreign key constraint ============= Below is scenario. drop table

Post: High-Performance Click Analysis with MySQL

…doesn’t save you from the downtime caused by ALTER TABLE — a typical …as many rows as you have unique ads per day.  Viewed…primary key, we can shrink the primary key‘s width: create table ads_… this gain us anything? We dropped one column, and we …using MySQL 5.1′s row-based replication, or in MySQL 5…