June 18, 2013

Post: MySQL Query Patterns, Optimized - Webinar questions followup

table to be first, then look up matching rows in `title` by a secondary index.  But the result was that it created a temporary tablein this case to force MySQL to scan the `title` table first, grouping by kind_id in index order.  This made the first table in… the Derived-Table Solution on slides 55-…

Post: Troubleshooting MySQL Memory Usage

created which temporary tables (both in memory and not): mysql> select * from information_schema.global_temporary_tables \G *************************** 1. row *************************** SESSION_ID: 7234 TABLE_SCHEMA: test TABLE

Post: How much overhead is caused by on disk temporary tables

… of queries MySQL needs to create temporary tables, which can be created in memory, using MEMORY storage engine or can be created on disk as MYISAM tables. Which one… is not large enough to fit all key blocks from temporary table index, so we get a lot of key writes which kill…

Post: What to tune in MySQL Server after installation

… work as MySQL DBAs or be involved with MySQL Performance in some way is to ask them what should be tuned in MySQL Server straight… indexes for temporary tables which are created on disk. innodb_buffer_pool_size This is very important variable to tune if you’re using Innodb tables

Post: On Character Sets and Disappearing Tables

tables with ASCII identifiers and we’re doing JOINs against tables in this database and seeing that indexes aren’t being used intemporary table rather than the temporary table name that was displayed in the error message.  Once you do that, you can run something like this: CREATE TABLEMySQL

Post: MySQL VIEW as performance troublemaker

MySQL has two ways of handling the VIEWS – query merge, in which case VIEW is simply expanded as a macro or Temporary Table in which case VIEW is materialized to temporary tables (without indexes !) which is later used further inCREATE TABLE

Post: MySQL Indexing Best Practices: Webinar Questions Followup

… recommend creating an index in every table you create? Example: CREATE TABLE user_competition_entry user_id (INT), competition_id(INT); The table is…Index on the column MySQL can avoid temporary table or filesort for group by by this column. This works because by scanning data in index order MySQL

Post: Derived Tables and Views Performance

in terms of performance ? Derived Tables in MySQLin terms of performance: Query on base table executes using index and it is very fast mysqlindexes to the table in this case. Consider using temporary views instead of derived tables If you really need to use subselect in from clause consider creating

Post: Multi Range Read (MRR) in MySQL 5.6 and MariaDB 5.5

on your scenario. You can read more about the MRR optimization available in MySQL 5.6 here: http://dev.mysqlCreated_tmp_disk_tables 1 1 1 1 1 Created_tmp_tablestemporary

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

table that we’re trying to emulate: mysql: SHOW CREATE TABLE information_schema.innodb_ft_default_stopword\G *************************** 1. row *************************** Table: INNODB_FT_DEFAULT_STOPWORD Create Table: CREATE TEMPORARY TABLE