June 19, 2013

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

… a more complete performance schema, online DDL and several other InnoDB and query optimizer improvements. However, I…In previous versions of MySQL, you can create two indexes with the same columns (in the same …: 0 Duplicates: 0 Warnings: 0 mysql> ALTER TABLE test ADD INDEX (col2); Query OK, 0 rows …

Post: MySQL Query Patterns, Optimized - Webinar questions followup

… query optimizer analyzes queries for common patterns the MySQL designers know can be improved.  But there’s a finite amount of engineer… solution for randomly choosing rows involves some compromise, either of performance, or of accuracy of randomness.  The ORDER BY RAND() solution… known to have poor performance, but it returns a better random choice. Another workaround may be to add a column to the table…

Post: Shard-Query adds parallelism to queries

… Year column. I partitioned the table into months using the FlightDate column using the improved MySQL 5.5 partitioning options which work directly on columns…, I could add more CPU cores. Regardless, even with a single server Shard-Query will perform much better than regular MySQL as the…

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

mysql> show warnings; +———+——+————————————————–+ | Level | Code | Message | +———+——+————————————————–+ | Warning | 124 | InnoDB rebuilding table to add column

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

…INCREMENTAL’); SET @mvid := LAST_INSERT_ID(); CALL flexviews.add_expr(@mvid,’GROUP’,'customer_id’,'customer_… this column. It is used to prevent wide innodb primary keys on the MV. mysql> select… use of NOW(), it but still provides improved performance during refresh by accessing summarized data. I…

Post: Improved InnoDB fast index creation

… method is used: mysql> SET profiling=1; Query OK, 0 rows affected (0.00 sec) mysql> ALTER TABLE t ADD COLUMN v VARCHAR(1); Query OK, 4194304 rows affected (1 min 1.97 sec) Records: 4194304 Duplicates: 0 Warnings: 0 mysql… in the buffer pool, fast index creation provides even better performance as compared to the default method, because it does not…

Post: Multi Range Read (MRR) in MySQL 5.6 and MariaDB 5.5

column, pk_column FROM tbl WHERE key_column=x ORDER BY key_column (Note that secondary keys in InnoDB contain primary key columnsperformance improvement when the workload is in-memory, in fact MRR adds

Post: Shard-Query turbo charges Infobright community edition (ICE)

… of the data, performance can be improved significantly: $ cat shards.ini [default] user=mysql db=ontime password= port=5029 column=date_id mapper=hash… c LIMIT 10; The next queries show how performance is improved when Shard-Query adds parallelism when “subqueries in the from clause” are…

Post: Find and remove duplicate indexes

…the performance of our database: They make the optimizer phase slower because MySQL needs…column and MySQL won’t complain. Let’s see this example: mysql> alter table t add index(name); mysql> alter table t add index(name); mysql…redundant keys can help us to improve the execution time and decrease the…

Post: ALTER TABLE: Creating Index by Sort and Buffer Pool Size

…rand())); and added key on column C: alter table sbtest add key c(c); The …in terms of data and index size: mysql> show table status like “sbtest” \G *************************** 1. row…performance improvement to the speed of ALTER TABLE, as this is not only step which ALTER TABLE does the improvement