June 19, 2013

Post: Can MySQL temporary tables be made safe for statement-based replication?

temporary table into a non-temporary InnoDB table: master > delimiter // master > create procedure test_temp() begin -> start transaction; -> create temporary table test.t(a int) engine=innodb… replication here. It looks like this doesn’t avoid the problem either. Interestingly, I also created a …

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

… set to accommodate needs of your temporary table. Do not forget about it especially if running only Innodb tables so you may think there… table on tmpfs as this should avoid write overhead we’ve observing (and which is indeed very good production practice, if your temporary tables

Post: Choosing innodb_buffer_pool_size

…_buffer, mysql threads, temporary tables, per thread sort buffer which can be allocated. There are also things like innodb additional memory pool (which… Innodb algorithms are finely tuned with consideration what is in memory and what is on disk, for example when Innodb tries to avoid

Post: Improved InnoDB fast index creation

… copy the data to a temporary table is constant. The reason is that when using merge sort, InnoDB has to scan the clustered… to a temporary table; ALTER TABLE and OPTIMIZE TABLE always process tables containing foreign keys as if expand_fast_index_creation is OFF to avoid dropping…

Post: MySQL Indexing Best Practices: Webinar Questions Followup

TABLE LINK (id1 int unsigned not null ,id2 int unsigned not null, PRIMARY KEY(id1,id2), KEY K(id2)) engine=INNODB; when table… for such table. It also will help the query you’re mentioning allowing group by to be performed without temporary table or external…? A: If you have Index on the column MySQL can avoid temporary table or filesort for group by by this column. This works…

Post: Enum Fields VS Varchar VS Int + Joined table: What is Faster?

Table Scan operation difference often would be larger. It is also interesting to note performance of Innodb tables in… also makes MySQL to store Join result in temporary table to do the sort, all together makes things…this case but this is other story. To avoid part of this problem we of course …

Post: Why MySQL could be slow with large tables ?

…There are also clustered keys in Innodb which combine index access with …temporary table etc. Prefer full table scans to index accesses – For large data sets full tableAvoid joins to large tables Joining of large data sets using nested loops is very expensive. Try to avoid it. Joins to smaller tables

Post: 10+ Ways to Crash or Overload MySQL

… give you couple of hints: Temporary Tables You can build query (with derived tables) which uses as many temporary tables as you like and you… be avoided by having high max_connect_errors variables but this will obviously disable password brute force protection. Mutex Saturation Both Innodb

Post: Announcing Percona Server 5.1.65-14.0

… to avoid full data scans. New table INNODB_CHANGED_PAGES has been implemented. This table contains …TEMPORARY_TABLES or TEMPORARY_TABLES would crash threads working with temporary tables. Bug fixed #951588 (Laurynas Biveinis). A crash could leave behind an InnoDB temporary table with temporary

Post: How much memory can MySQL use in the worst case?

… lot of tables. We’re trying to fix that, but it’s unbounded in a non-Percona server. And InnoDB has other… more it will allocate it. innodb_additional_mem_pool_size is just a handy way to avoid repeated malloc() calls by doing…, etc) uses memory to execute; so do temporary tables. The following query creates at least 2 temporary tables: select * from ( select * from ( select 1…