June 19, 2013

Post: Long PRIMARY KEY for Innodb tables

MyISAM tables in case of MySQL/System crash is painful and great to be avoided. Long primary key – why did not I use auto_increment id inprimary key itself does not get much larger whatever columns you place into it, as primary key BTREE contains all table data in

Post: MySQL Indexing Best Practices: Webinar Questions Followup

in other direction. For Innodb Table id2 is not needed pas part of second key as PRIMARY key is appended to it internally anyway. For MyISAM tableMySQL optimizer restrictions in how well it can deal with primary key appended to the index column, especially in such case as you’re suggesting. In

Post: InnoDB vs MyISAM vs Falcon benchmarks - part 1

primary key and couple of extra indexes. CREATE TABLE IF NOT EXISTS `$tableName` ( `id` int(10) unsigned NOT NULL auto_increment, `name` varcharKEY_POINT with only different the values of accessed column is stored in key. MyISAM

Post: Using CHAR keys for joins, how much is the overhead ?

… for MySQL 5.1.18 using MyISAM and Innodb tables. This time unlike other benchmarks I decided to do Join not on primary key and… expected as MyISAM uses key compression for varchar columns so random key lookups become significantly slower. I tried to set pack_keys=0 which typically helps in similar…

Post: Dynamic row format for MEMORY tables

in MySQL in 2008): The key columns must come before any non-key variable-length columns. For performance reasons, the key columns are stored inTABLE sbtest (id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, c VARCHAR(4096) NOT NULL DEFAULT ”, PRIMARY KEY

Post: MySQL 6.0 vs 5.1 in TPC-H queries

varchar(44) NOT NULL, `l_shipmode` char(10) NOT NULL, PRIMARY KEY (`l_orderkey`,`l_linenumber`), KEY `lineitem_fk2` (`l_suppkey`), KEYas MySQL used index to scan rows and then did access to data to read other columns

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

varchar(255) NOT NULL, PRIMARY KEY (id), KEY state (state) ) ENGINE=MyISAM; 2) Table with VARCHAR: CREATE TABLE cities_varchar ( id int(10) unsigned NOT NULL auto_increment, state varchar

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

TABLE `dir_test_innodb` ( `id` int(10) unsigned NOT NULL, `full_name` varchar(100) DEFAULT NULL, `details` text, PRIMARY KEY (`id`), FULLTEXT KEYmysql> CREATE TABLE dir_test_innodb4 (fts_doc_id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY); ERROR 1166 (42000): Incorrect column

Post: PBXT benchmarks

primary key and couple of extra indexes. CREATE TABLE IF NOT EXISTS `$tableName` ( `id` int(10) unsigned NOT NULL auto_increment, `name` varcharMySQL version We used MySQL 5.1.16-beta sources for MyISAMKEY_POINT with only different the values of accessed column is stored in key… by Primary KEY, as I …

Post: High-Performance Click Analysis with MySQL

…stored in a VARCHAR(36)?  When tablesMyISAM tables and taking downtime, I would not use MyISAM for anything but read-only tables…application in advance. What about partitioning in MySQLprimary key columns. And not only will every index be a little narrower, the table will now contain only half as