June 19, 2013

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

…—-. 1 mysql mysql 98304 Feb 20 16:09 FTS_00000000000000ad_STOPWORDS.ibd -rw-rw—-. 1 mysql mysqlcount | 0 | | total_word_count | | | optimize_start_time | | | optimize_end_time | | | stopword_table_name | | | use_stopword | 1 | | table_state | 0 | +—————————+———+ 10 rows

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

…just for new connections as in MySQL. This is very helpful for …time: 0.002886 Rows_sent: 1 Rows_examined: 655360 Rows_affected: 0 Rows_read: 655361 # Bytes… # Attribute pct total min max avg 95% stddev median # ============ === ======= ======= ======= ======= ======= ======= ======= # Count 0 149 # …

Post: Researching your MySQL table sizes

…: Find total number of tables, rows, total data in index size for given MySQL Instance SELECT count(*) tables, concat(round(sum(table_rows)/1000000,2),’M') rows…_schema | rows | data | idx | total_size | idxfrac | +——–+——————–+——-+——-+——-+————+———+ | 48 | cacti | 0.01M | 0.00G | 0.00G | 0.00G | 0.72 | | 17 | mysql | 0.00M…

Comment: COUNT(*) vs COUNT(col)

count(*) | +———-+ | 230120 | +———-+ 1 row in set (32.57 sec) and if you look at the buffer pool used for the count(*): Total

Post: Using GROUP BY WITH ROLLUP for Reporting Performance Optimization

total number of rows which matches our where clause. Most Simple Way Number One is to simply run two queries: mysql> select grp, count… | 290 | +——+—–+ 10 rows in set (21.12 sec) mysql> select count(*) cnt from dt where slack like “a%”; +———+ | cnt | +———+ | 2352996 | +———+ 1 row in set… can get grouped result set together with total value for the groups: mysql> select grp, count(*) cnt from dt where slack like “a…

Post: Quickly finding unused indexes (and estimating their size)

…_UNIQUE as NON_UNIQUE, count(*) as COLUMN_CNT, group… view: mysql> select * from all_indexes\G … *************************** 33. row *************************** TABLE_…total_pages: 27 index_total_size: 442368 … Now we just need to update our droppable_indexes view to use that information: mysql

Post: Using any general purpose computer as a special purpose SIMD computer

… md5 on the reverse of every item 3) count the total number of words 4) count the frequency of words 5) order by… entire set multiple times. mysql> load data infile ‘/tmp/words’ into table words (chars); Query OK, 6033 rows affected (0.01 sec… as run by the native database interface (MySQL): mysql> select word, md5(word), md5(reverse(word)), count(*) from words2 group by 1,2…

Post: Shard-Query turbo charges Infobright community edition (ICE)

…the table: mysql> select count(*), count(distinct UniqueCarrier) from dim_flightG *************************** 1. row *************************** count(*): 58625 count(distinct UniqueCarrier): 29 1 row in set …data (23GB raw data, compressed to about 2GB total data. then spread over six servers). Due …

Post: Advanced index analysis with mk-index-usage

…) AS total_cnt, COUNT(*) AS variations FROM index_usage GROUP BY query_id, db, tbl HAVING COUNT(*) > …query 7675136724153707161, anyway? mysql> select * from queries where query_id = 7675136724153707161\G *************************** 1. row *************************** query_id: 7675136724153707161 …

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

… buffer pool, or roughly with 9% of the total data in memory. let’s look at the … “lookup” via username, or even the rare count. But for the most part they are designed …MySQL + Memcached, and then to other solutions like Tokyo Tyrant or Cassandra. My Application does the following: A.) read a row