June 19, 2013

Post: Implementing SchemaSpy in your MySQL environment

to create this once so that the  command line is shorter and neater.  In my case here is the properties file in use for mynumber of children, parents, count of columns, row counts, and comments — a great way for a high level overview of the table sizes and an easy way to

Post: MySQL Query Patterns, Optimized - Webinar questions followup

to make a general rule, because there are different types of subqueries (correlated, non-correlated, derived tables, scalar subqueries) and we saw in mytable to count the movies per production year for each kind_id. It was more efficient in this case to force MySQL to scan the `title` table

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

to show how to count the number of unique words, an how many times those words appear in a document. Set based processing ofin set (0.00 sec) How to factor numbers create table dataset ( id bigint auto_increment primary key, prime_number

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

how to make InnoDB FTS blazingly-fast, but simply to get a sense of how it works compared to traditional MyISAM FTS. We’ll get to performance inof the other I_S tables, I do find that the number of rows in I_S.innodb_ft_index_table

Post: To SQL_CALC_FOUND_ROWS or not to SQL_CALC_FOUND_ROWS?

to get a result set, another – to count total number of rows. In this post I’ll try toto perform some query on this table using indexed column b in where clause: mysql> SELECT SQL_NO_CACHE SQL_CALC_FOUND_ROWS * FROM count

Post: A common problem when optimizing COUNT()

count(col1) from table; If you know your SQL well, you know COUNT() has two meanings. 1) count the number of rows 2) count the number ofin your query. You meant to count the number of times the column’s value is not null. This in my

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

of a few seconds to incrementally refresh a view, even when the number of changes is very small. The Flexviews SQLhow you can use this summary to calculate the number of lines in the order_lines table, three orders of magnitude more quickly than COUNT(*). mysql> select count

Post: A case for MariaDB's Hash Joins

to be a lot more random index lookups needed to be performed because of the increase in the number of rows needed to be joined from supplier tableSQL used for this test together with its EXPLAIN output as returned by MySQL 5.5 is as follows: SELECT o.*, count

Post: Shard-Query adds parallelism to queries

of a small number of concurrent queries (or only one) to demonstrate how much improvement could be made tocount(*)) on a range of records. This table is partitioned by month which means that MySQL can use partition pruning to reduce the amount of

Post: Shard-Query EC2 images available

number of the flight. Some data hand updated.’; — – Table structure for table `ontime_fact` — CREATE TABLEto 20 nodes for testing. This way you can verify the numbers in my next blog post. I will compare performance of