…Can you compare the use of subqueries/multiple joins vs. multiple queries (e.g. temp tables)? For performance…in a suboptimal form. Q: Doesn’t the primary key solution for random selection only work when the…each correlation name (k1, k2, k3) is an index lookup. Look at the EXPLAIN output — it …
Post: Benchmarking Percona Server TokuDB vs InnoDB
… with TokuDB, of course I wanted to compare InnoDB performance vs TokuDB. I have a particular workload I’m interested in…) DEFAULT ” NOT NULL, pad CHAR(60) DEFAULT ” NOT NULL, PRIMARY KEY (id) ) CREATE INDEX k on sbtest$I(k) and tables sbtest$I…, $ID/1000, $K) ON DUPLICATE KEY UPDATE k=VALUES(k)+k; COMMIT; That is, our PRIMARY KEY is not sequential anymore, which is…
Post: More on MySQL transaction descriptors optimization
…in the first post: single SELECT queries doing PRIMARY KEY lookups (aka QPS sysbench mode); same MySQL …comparison on a single-node (on the left) vs. two-node (on the right) configuration. No surprises…nontrx –oltp-read-only=off –oltp-index-updates=0 –oltp-non-index-updates=0 run POINT_SELECT + …
Post: Multi Column indexes vs Index Merge
… it gets from the index – typically (unless it is covering index) MySQL gets a “row pointer” which can be primary key value (for Innodb… | id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra | +—-+————-+———+————-+—————-+——-+———+——+——–+————————————–+ | 1 | SIMPLE | idxtest | index_merge | i1,i2,combined | i1,i2 | 4…
Post: MySQL 5.6 vs MySQL 5.5 and the Star Schema Benchmark
… vs…+——————-+——————+——-+——+——+———+—————–+ | `ssb`.`lineorder` | GEN_CLUST_INDEX | 6909 | 2559 | 4350 | …key(P_Name), key(P_MFGR), key(P_Category), key(P_Brand) ); DROP TABLE IF EXISTS supplier; CREATE TABLE supplier ( S_SuppKey int primary key…
Post: InnoDB vs MyISAM vs Falcon benchmarks - part 1
… or Web applications – medium size rows, auto increment primary key and couple of extra indexes. CREATE TABLE IF NOT EXISTS `$tableName` ( `id` int… with different typical data access patterns: primary key single row lookup, primary key range lookup, same access types for primary key and full table scans. To…
Post: Enum Fields VS Varchar VS Int + Joined table: What is Faster?
…’,'Minnesota’,'Mississippi’,'Missouri’) NOT NULL, city varchar(255) NOT NULL, PRIMARY KEY (id), KEY state (state) ) ENGINE=MyISAM; 2) Table with VARCHAR: CREATE… quite expected – This is MyISAM table which is accessed via index, which means to retrieve each row MySQL will have to…: 1 select_type: SIMPLE table: s type: eq_ref possible_keys: PRIMARY key: PRIMARY key_len: 1 ref: test.c.state_id rows: 1 Extra…
Post: Index Condition Pushdown in MySQL 5.6 and MariaDB 5.5 and its performance impact
… is, and what is it aimed at. Index Condition Pushdown Traditional B-Tree index lookups have some limitations in cases such as range scans, where index parts after the part on which range condition is applied… for filtering records. For example, suppose you have a key defined as: KEY `i_l_partkey` (`l_partkey`,`l_quantity`,`l_shipmode…
Post: MySQL 6.0 vs 5.1 in TPC-H queries
…PRIMARY KEY (`l_orderkey`,`l_linenumber`), KEY `lineitem_fk2` (`l_suppkey`), KEY `lineitem_fk3` (`l_partkey`,`l_suppkey`), KEY `li_shp_dt_idx` (`l_shipdate`), KEY…
Post: PBXT benchmarks
… tested only READ queries, similar to ones in benchmark InnoDB vs MyISAM vs Falcon (http://www.mysqlperformanceblog.com/2007/01/08/innodb… or Web applications – medium size rows, auto increment primary key and couple of extra indexes. CREATE TABLE IF NOT EXISTS `$tableName` ( `id` int…

