June 19, 2013

Post: MySQL Query Patterns, Optimized - Webinar questions followup

query optimizer and see how easy it is?  ;-)  Generative grammars like SQL can produce an infinite variety of  queries.  The query optimizer analyzes queriesnumberBY RAND() solution is known to have poor performance, but it returns a better random choice. Another workaround may be to add a column to

Post: Implementing SchemaSpy in your MySQL environment

to the Development process a lot more effectively when I know the relationships between tables versus observing querieshow SchemaSpy identifies the relationship, and whether you need tonumber of children, parents, count of columns

Post: Shard-Query adds parallelism to queries

… workload consisting of a small number of concurrent queries (or only one) to demonstrate how much improvement could be made to MySQL so that is… post into a partitioned InnoDB table. Partitioning example: /*!50500 PARTITION BY RANGE COLUMNS(FlightDate) (PARTITION p2 VALUES LESS THAN (’1988-01-01…

Post: How To Test Your Upgrades - pt-upgrade

column count, query execution time including execution errors and warnings. So how do you exactly test your queriesquery log: # You can also run the slow log through pt-query-digest like the commands below # to limit the number of queries per fingerprint to

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

to note is the last line in the output the # MISC part, it tells you how much of “load” is not covered by… the query execution plan used by MySQL. The end result might be that you end up limiting the number of results returned by the query, by using a LIMIT clause or by filtering based on the option_name column, or you…

Post: ORDER BY ... LIMIT Performance Optimization

by index is how many rows you need to scan to resolve order by (this can be found in slow query log or byby by last column, in fact index can be used for ORDER BY if sorting is done by leading column(s). Note however columns following column

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

BY, such as this one, this creates a ranking function automatically. In cases where this is not useful, simply ignore this columnto display the total sales amount for any particular customer. Notice how you can use this summary to calculate the number

Post: Tools and Techniques for Index Design Webinar Questions Followup

how to register to attend. During my webinar, I got a numberquery, by counting how many lookups to index entries or table rows will be necessary for a given query

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

Query applies a clever approach to parallelism which allows it to significantly improve the performance of queries byby joining the newly constructed dimension table tables to the staging tables, omitting the dimension columnsby the number

Post: Multi Column indexes vs Index Merge

… index lookups. So we spoke about how MySQL uses the index but not …query completes in less than 10ms Now what if we pretend we only have single column indexes (by hinting optimizer toto ? It is not combined index but single index on another column. This is because MySQL is able to estimate number