June 20, 2013

Post: How to find MySQL queries worth optimizing ?

a.id=5 and b.id=a.k; mysql> explain select * from sbtest a,sbtest b where a.id=5 and b.id=a.k; +—-+————-+——-+——-+—————+———+———+——-+——+——-+ | id | select_type | table

Post: Gathering queries from a server with Maatkit and tcpdump

…we’ve been quietly developing a MySQL protocol parser for Maatkit. …1s # 10s+ # Tables # SHOW TABLE STATUS LIKE ‘dual’\G # SHOW CREATE TABLE `dual`\G # EXPLAIN select 1 from ( select sleep(.1) fromtop of the report — what is up with the 12% of queries that say No_index_used? If we increase –limit a

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

… refreshed. This is not much different from building a table with CREATE TABLE .. AS SELECT. In fact, this is actually part…MV. mysql> select mview$pk as rank, customer_id, total_price, total_lines from demo.dashboard_top_customers limit 10; +——+————-+————-+————-+ | rank |…

Post: Identifying the load with the help of pt-query-digest and Percona Server

a cold MySQL instance, then it would require reading nearly 40 pages from10s+ # Tables # SHOW TABLE STATUS FROM `wp_blog_one ` LIKE ‘wp_options’\G # SHOW CREATE TABLE `wp_blog_one `.`wp_options`\G # EXPLAIN /*!50100 PARTITIONS*/ SELECT

Post: How fast can you sort data with MySQL ?

MySQL Group by Performance Tests to see how much MySQL can sort 1.000.000 rows, or rather return top 10 rows from sorted result set which is the most typical way sorting is used in practice. I tested full table

Post: How Percona does a MySQL Performance Audit

SELECT id FROM clients)” which is atop 10 most expensive queries, in total execution time. By the way, the slow query logs in the stock MySQL

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

…the like. We are using MySQL 5.5.30 and MySQL 5.6.10 with no configuration …a table, and configure that table to be our stopword list for InnoDB? This is the table that we’re trying to emulate: mysqlfrom Arizona to be towards the top of the list. With 5.5, this is exactly what happens: mysql: SELECT

Post: MySQL EXPLAIN limits and errors.

tables (selects in FROM clause) are used. MySQL will execute these subselects on explain to provide plan for topfrom other tables. No information about using disk for sort or temporary tables MySQL

Post: MySQL VIEW as performance troublemaker

topTABLE `comments` ( `user_id` int(10) unsigned NOT NULL, `comment_id` int(10mysql> explain select * from user_counts where user_id=5 \G *************************** 1. row *************************** id: 1 select_type: PRIMARY table

Post: High-Performance Click Analysis with MySQL

top ads by clicks, topMySQL conferences from people who have built systems like yours, and there’s atables, it lets you scan portions of a table instead of the whole table if you atables is hard work for the database server.  If you do it on the master with INSERT..SELECT