June 18, 2013

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

in the table above you can with default buffer size of 256K, MariaDB 5.5 shows that Handler_mrr_rowid_refills = 1, which means thethe PK column value in the index record to make a lookup in the PK. Both these lookups are performed in a single call to the

Post: MySQL Indexing Best Practices: Webinar Questions Followup

MySQL optimizer restrictions in how well it can deal with primary key appended to the index column, especially in such case as you’re suggesting. In theThe table is only used to record a user_id and competition_id, nothing more. Would doing a SELECT competition_id, COUNT

Post: Beware the Innodb Table Monitor

table, every column, and every index in that table.  Once you get the output, you just DROP the table

Post: Timezone and pt-table-checksum

of the tables had timestamp fields and were set to a default value of CURRENT_TIMESTAMP.  From the manual, here is how MySQLeach time, the checksum will change.  However, the underlying data isn’t touched and remains the same. In

Post: How fast is FLUSH TABLES WITH READ LOCK?

in practice, most tables are both read and written. The first write query to each table will immediately block against the…localhost | test | Query | 80 | Sending data | select count(*) …MySQL command-line client that wasn’t started with -A, and it’s trying to get a list of tables and columns in the

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

the table does not contain a suitable column,” but there are only a handful of references to FTS_DOC_ID found when searching the MySQL

Post: A case for MariaDB's Hash Joins

the number of rows in the table orders (left operand), and so MySQL 5.5 prefers to do a PRIMARY index scan of the table orders resulting in

Post: Shard-Query adds parallelism to queries

the FlightDate column in the WHERE clause instead of Year. Each iteration reads an additional year of data. That is, the first query reads one year, and the

Post: Shard-Query EC2 images available

the InnoDB versions are only available on 64 bit instances. MySQL will fail to start on a micro instance, simply decrease the values in thein the EC2 console. That the “private ip” field is selected in the list of columns to show (click show/hide to change the columns) That the

Post: A rule of thumb for choosing column order in indexes

… little rule of thumb I sometimes use to decide which columns should come first in an index. This is not specific to MySQL, it’s generally applicable to any database server with b-tree indexes. And there are a bunch of subtleties… those for the sake of simplicity. Let’s start with this query, which returns zero rows but does a full table scan. EXPLAIN…