June 19, 2013

Post: MySQL 5.6 vs MySQL 5.5 and the Star Schema Benchmark

difference between innodb_buffer_pool_stats side by side: INNODB_OLD_BLOCKS_TIME=0 INNODB_OLD_BLOCKS_TIME=1000 *************************** 1. row ************************************************ 1. row

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

…, 0 rows affected (0.00 sec) mysql: INSERT INTO innodb_ft_list2 SELECT * FROM innodb_myisam_stopword; Query OK, 543 rows affected (0… rebuild. Calculation of match score is completely different between the two engines; sometimes this leads to wildly different results. If you were hoping to…

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

… thing to know right now is that there are two significant differences between the methods. A view which uses the complete… than COUNT(*). mysql> select count(*) cnt from order_lines\G *************************** 1. row *************************** cnt: 155187034 1 row in set (32.03 sec) mysql> select…

Post: The MySQL optimizer, the OS cache, and sequential versus random I/O

… 1. row *************************** Name: fact Engine: MyISAM Rows: 147045493 Avg_row_length: 117 Data_length: 17217646764 Index_length: 11993816064 mysql>…). The difference between the two queries — 55 minutes and 2.6 days — is basically the difference between scanning data…

Post: InnoDB's gap locks

… in a running transaction, two identical statements get different values, because some other transaction has modified the table’s rows. For example: transaction1… lock struct(s), heap size 1248, 3 row lock(s), undo log entries 1 MySQL thread id 3, OS thread handle 0x7f84a78ba700… constraint checking or duplicate-key checking. The most important difference between these two options is that the second one is a global variable…

Post: High-Performance Click Analysis with MySQL

… you need. Because I’ve built two such systems to manage online ads …Requirements The words “need” and “want” are different.  Do you really need atomic-…s easy to flip back and forth between viewpoints on this and get distracted … queries that read a lot of rowsMySQL can’t handle too many of those…

Post: Data mart or data warehouse?

…analysis. Part 1 – Intro to OLAP Identifying the differences between a data warehouse and a data mart. (this… in the same row as the item information. It would be possible create two different dimensions, product and… it may be on MySQL, but it is definitely possibly to use MySQL as long as …

Post: Using index for ORDER BY vs restricting number of rows.

… interesting problem with MySQL Optimizer I frequently run into is making poor decision when it comes to choosing between using index for… will need to scan less than 100 rows to generate result. The speed difference between these two example queries is about 100 times so it may be quite serious. To fix this issue MySQL would need…

Post: Using UNION to implement loose index scan in MySQL

… Lets see how query times differ in these cases: mysql> SELECT sql_no_cache… | 888ba838661aff00bbbce114a2a22423 | +———————————-+ 1 row in set (0.06 sec) mysql> SELECT SQL_NO_CACHE name FROM people WHERE age BETWEEN…gender instead of age with just two possible values it would be …

Post: Aligning IO on a hard disk RAID – the Benchmarks

different IO alignment, not different MySQL configurations, I didn’t try out different MySQL…grant-tables Amount of rows used was 20M, transactions…difference between aligned and misaligned reads was the same and, WT -vs- WB cache of course showed no difference… Summary For the two workloads that are …