June 18, 2013

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

last webinar, but did not have time to analyze it in-depth.  If you try to do something like this in MySQLmysql> SHOW CREATE TABLE test\G *************************** 1. row *************************** Table: test Create Table: CREATE TABLE `test` ( `id` int(11) NOT NULL AUTO_INCREMENT…: 0 We get no…

Post: MySQL 5.6.10 Optimizer Limitations: Index Condition Pushdown

…) DEFAULT NULL, `role_id` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `role_id_note` (`role_id`,`note`) ) ENGINE=InnoDB AUTO_INCREMENT=22187769 DEFAULT CHARSET=utf8… prepared for the MySQL 5.6 release, and get advantage of the latest integrated tools that MySQL provides with its last GA release? Then…

Post: Edge-case behavior of INSERT...ODKU

…_test ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, username VARCHAR(20) NOT NULL, host_id TINYINT UNSIGNED NOT NULL, last_modified… being defined first. So, MySQL checks our INSERT, sees that the next auto-inc value is available, and… number of seconds in a day, and we get 33.1 days, or a little over 4 …

Post: Statement based replication with Stored Functions, Triggers and Events

…(YEAR(CURDATE())); Binary Logs: First the event gets logged to the Binary Log: CREATE DEFINER=`msandbox…used auto incremental value is logged as an extra event just before the statement. MySQL uses the INSERT_ID …server id 1 end_log_pos 1245 Intvar SET LAST_INSERT_ID=2/*!*/; #111214 0:04:50 server id

Post: Flexviews - part 3 - improving query performance using materialized views

… or last refeshed. The incremental method is somewhat conceptually similar to using mysql binary …sales’, ‘INCREMENTAL‘); SET @mvid := LAST_INSERT_ID(); CALL flexviews.add_expr(@mvid,’GROUP’,'customer_id‘,’customer_id‘); … every MV gets a special column `mview$pk` which is an auto_increment BIGINT …

Post: Find where your data is replicated, win a Percona Live ticket

…on Monday, so this is the last in the series of free-Percona-…MySQL replication hierarchy? We have, too. As consultants, a lot of times we need to get….1.57-rel12.8-log Server ID 6275 Uptime 10+01:18:10 (…, running, no errors Slave mode STRICT Auto-increment increment 1, offset 1 InnoDB version 1.0.6…

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

get an error: mysql> CREATE TABLE dir_test_innodb4 (fts_doc_id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT

Post: Shard-Query EC2 images available

…the comments of the last post. ICE does …id` (`dest_airport_id`), KEY `DepDelay` (`DepDelay`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT=’Contains all avaialble data from 1988 to 2010′; mysql… 539279360 Data_free: 4194304 Auto_increment: NULL Create_time:… over response time, get a good plan…

Post: Connecting orphaned .ibd files

… to another MySQL server. If you try to very often you’ll get an error in the log: InnoDB: Error: tablespace id is… some MySQL server. 0. Create empty InnoDB tablespace. 1. Create the table: mysql>CREATE TABLE actor ( actor_id SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT, first_name VARCHAR(45) NOT NULL, last_name VARCHAR(45) NOT NULL, last_update…