May 22, 2012

Post: Dynamic row format for MEMORY tables

… implemented true-VARCHAR support for MEMORY tables for MySQL 5.0. Although this patch did not add the BLOB and TEXT support, it refactored the… tables are still used for temporary tables where the MEMORY tables with dynamic row format could be used instead: for schemas containing large VARCHARs, BLOB, TEXT

Post: Percona Server 5.5.15-21.0

… limitation, the Improved MEMORY Storage Engine is introduced in this release for supporting true VARCHAR, VARBINARY, TEXT and BLOB fields in MEMORY tables. This implementation is based on the Dynamic Row Format (DFR) introduced by the mysql-heap-dynamic…

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

…put to temporary tablesBLOB/TEXT columns are not supported with MEMORY storage engine so must use on disk MyISAM temporary table. What i …memory MEMORY temporary tables can be 10-100 times faster than disk based MyISAM tables Hopefully MySQL will implement support of dynamic rows for MEMORY tables

Post: TMP_TABLE_SIZE and MAX_HEAP_TABLE_SIZE

…should increase tmp_table_size to appropriate value and avoid using blob/text columns which force table creation on the disk because MEMORY storage engine…dev.mysql.com/doc/refman/5.0/en/memory-storage-engine.html MEMORY table contents are stored in memory, which is a property that MEMORY tables

Post: Heikki Tuuri Innodb answers - Part I

blobs/text fields (needs more info) According to the documentation, InnoDB put first 768 chars of each text/blob… the system’s memory the kernel can decide (incorrectly) to swap out MySQL. There are two …example, if ORDER and ORDERLINE tables are joined to form a single table), it might make sense…

Post: MySQL Prepared Statements

… was sent as text and result returned back as text. For example number …copying Avoid SQL Injection Save memory on handling blobs There are also drawbacks …you can’t use them for table name. In certain version it … close prepared statements – Many memory leaks reported in MySQL Server turned out to …

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

… fits in memory using in memory table is better in most cases. I mainly did this comparison keeping in mind cases when BLOB/TEXT can’t be used because I expect them to have similar overhead (though I can try converting this column to TEXT to see how long time changes) There is another reason – MySQL only allows you to set tmp_table_site per…

Comment: Slow DROP TABLE

… where tables are created in /tmp : – when you use “create temporary table” – when MySQL need a temporary table which use BLOB or TEXT column – when MySQL need a temporary table which is bigger than tmp_table_size/max_heap_table… case, we can’t use /dev/shm to store temporary tables : it may use too much memory.

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

… tmpfs vs heap table to see how it works. In general of course it would be great if MySQL would have the… support BLOB/TEXT in memory tables and there is Maria comming which will cache the data in pagecache avoiding disk IO for temp tables if…

Post: How number of columns affects performance ?

… for dynamic rows tables certain conversion has to take place when internal data structures are populated (everything but TEXTs/BLOBs is fixed length… with such wide tables is to use covering indexes. I added one to t99v1 table and repeated the query: mysql [localhost] {msandbox} (test… Innodb when it comes to in memory full table scan. P.S Tests were done on MySQL 5.4.2 on Intel(R…