May 25, 2012

Post: How to recover deleted rows from an InnoDB Tablespace

… our primary key. After identifying the Primary Key don’t forget to remove the innodb_… normally the primary key will be larger on disk because it stores also … Skipped: 0 Warnings: 0 mysql (employees) > select * from salaries where emp_no=10008; +——–+——–+————+————+ | emp_…

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

…, Flexviews includes a MySQL stored procedure API, called the SQL_API which is used to define the view. These stored procedures maintain the… used by the above view, as stored in the data dictionary: mysql> select * from flexviews.mview_table where mview_id= flexviews.get_id…. In cases where this is not useful, simply ignore this column. It is used to prevent wide innodb primary keys on the MV. mysql> select…

Post: Should we give a MySQL Query Cache a second chance ?

…as MySQL 5.5 uses for Innodb Buffer Pool and have multiple MySQL …diagnosing the application, such as where this query comes from …MySQL have very large number of queries doing updates through primary key and use primary key… Query Cache Storage Engines MySQL Query Cache now stores queries in local…

Post: Heikki Tuuri Innodb answers - Part I

Innodb secondary Indexes trees are allocated in two extents same as primary key tree or stored in the same extent ? HT: An InnoDB…in MySQL 5.1 Q15: How frequently does Innodb fuzzy checkpointing is activated HT: InnoDBwhere it would be useful to have a foreign key not reference an entire primary key

Post: InnoDB vs MyISAM vs Falcon benchmarks - part 1

MySQL version We used MySQL 5.1.14-beta sources for MyISAM / InnoDB and MySQL 5.1.14-falcon bitkeeper tree bk://mysql.bkbits.net/mysqlprimary key. InnoDB is faster than MyISAM by 6-9%. Falcon shows very bad scalabilty. READ_KEY_POINT Query: SELECT name FROM $tableName WHERE

Post: Connecting orphaned .ibd files

…, PRIMARY KEY (`TABLE_ID`,`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 Please note field SPACE. For table actor it is equal to 15: mysql> select…. As you can see secondary indexes are stored in actor.ibd as well. But where is space_id in actor.ibd? Like… CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (actor_id), KEY idx_actor_last_name (last_name) )ENGINE=InnoDB DEFAULT CHARSET=utf8; This command…

Post: Shard-Query EC2 images available

PRIMARY KEY (`date_id`), KEY `FlightDate` (`FlightDate`), KEY `Year` (`Year`,`Quarter`,`Month`,`DayOfWeek`), KEY `Quarter` (`Quarter`,`Month`,`DayOfWeek`), KEY `Month` (`Month`,`DayOfWeek`), KEY `DayOfWeek` (`DayOfWeek`) ) ENGINE=InnoDB

Post: MySQL-Memcached or NOSQL Tokyo Tyrant - part 1

…based on an integer based primary key B.) Update data from that row and replace the stored contents on disk C…, 2GB, and 4GB. For these tests I left Innodb with a 256M buffer pool, or roughly with 9… of writes in MySQL coupled with the still large # of reads takes its toll. Another place where I have …

Post: Recovering Innodb table Corruption

… with >= MySQL-4.1.1 and stored already) 6353 InnoDB: Page may be an index page where index id is 0 25556 InnoDB: (index “PRIMARY” of… NOT NULL AUTO_INCREMENT, -> PRIMARY KEY (`id`) -> ) ENGINE=MYISAM; Query OK, 0 rows affected (0.03 sec) mysql> insert into test2 select * from…

Post: Heikki Tuuri answers to Innodb questions, Part II

…writes to about 6 tables, what version of Innodb/MySQL would you recommend? I’ve been staying … using solid state disks for storing ib_log* files; I know that innodb writes files in the …for primary key lookups or not showed up in “show innodb status”. select * from table where id=5 show innodb