June 18, 2013

Post: Computing 95 percentile in MySQL

… response time in terms of 95/99 percentile and get your logs in the table, so how to get the data if MySQL only provides you the avg: mysql> select count(*),avg(wtime) from performance_log_081128 where page_type=’search’; +———-+—————–+ | count(*) | avg…

Post: How to convert MySQL's SHOW PROFILES into a real profile

the Sakila sample database to demonstrate: mysql> SET profiling=1; mysql> pager cat > /dev/null mysql> SELECT * FROM nicer_but_slower_film_list; 997 rows inSELECT SUM(DURATION) FROM INFORMATION_SCHEMA.PROFILING WHERE QUERY_ID = @query_id ), 2) AS Pct_R, COUNT(*) AS Calls, SUM(DURATION) / COUNT

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

how long a page must be on the cold portion of the LRU before it is eligible to be moved to the hot portion.  In MySQLthe buffer pool in pages afterwards: mysql> select sq.*, pages / (@@innodb_buffer_pool_size / 16384) * 100 pct_buffer_pool from ( select table_name, index_name, count

Post: The case for getting rid of duplicate “sets”

in sets. This seems hard to fathom with the way we are used to dealing with data in a computer, but intuitive when you “think about how… 1 row in set (0.00 sec) mysql> select count(*) from ex1; +———-+ | count(*) | +———-+ | 73027220 | +———-+ 1 row in set (0.00 sec) mysql> select sum(…

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

in MySQL 5.6 (part 1) in MySQL 5.6 is syntactically identical to MyISAM full-text search, in the sense that the SQL required toto find out how to make InnoDB FTS blazingly-fast, but simply to get a sense of how it works compared toin set (4.60 sec) mysql> select

Post: Distributed Set Processing with Shard-Query

the database what you want but not how to get it. Most distributed engines work with rows. They break the queries up into theIN (2009) GROUP BY 1 ORDER BY NULL ) — AGGREGATION SQL: SELECT `origin_airport_id`, SUM(`count(*)`) AS `count

Post: Shard-Query adds parallelism to queries

… one) to demonstrate how much improvement could be made to MySQL so…data in one query, it runs many smaller queries each requesting significantly less data. On the other hand, MySQLThe purpose of this test is to demonstrate that Shard-Query works with GROUP BY and other constructs. Q1 – SELECT count

Post: UDF -vs- MySQL Stored Function

the whole table of 7 million records: mysql> select count(*) from paintings where title != ltrim_junk(title); +———-+ | count(*) | +———-+ | 101533 | +———-+ 1 row in set (6.82 sec) mysql> select count

Post: How To Test Your Upgrades - pt-upgrade

SELECT queries against multiple MySQL servers and reports on howto test.  Another is populating spare servers from backup and testing with them. With the former, you can easily verify that data

Post: MySQL-Memcached or NOSQL Tokyo Tyrant - part 1

the total data in memory. let’s look at the 1GB Setting: What, a performance regression? But we threw more memory at it!! Howto be helpful. I am still getting a really solid # of hits in memcached, but the # of writes in MySQL coupled with the