June 19, 2013

Post: Improved InnoDB fast index creation

…_INCREMENT PRIMARY KEY, c FLOAT) ENGINE=InnoDB; Query OK, 0 rows affected (0.00 sec) mysql> INSERT INTO t(c) VALUES (RAND… TABLE OPTIMIZE TABLE is mapped to ALTER TABLE … ENGINE=InnoDB for InnoDB tables and thus, is just a special case of the… index creation chapter in the MySQL manual: “… you can generally speed the overall process of creating and loading an indexed table…

Post: SHOW INNODB STATUS walk through

… sec, process no 3946, OS thread id 1151088992 inserting, thread declared inside InnoDB 500 mysql tables in use 1, locked 1 3… number of inserts is pretty much insert buffer efficiency. Adaptive hash index is hash index Innodb builds for some pages to speed up row… views open inside InnoDB Main thread process no. 10099, id 88021936, state: waiting for server activity Number of rows inserted 143, updated…

Post: Heikki Tuuri Innodb answers - Part I

… may not see a “free space” in Innodb tablespace to grow significantly. Q6: Does Innodb policy replacement algorithm takes into account page… so that we can see the full write speed of the disk for throughput. INNODB uses fuzzy checkpointing to commit data to… benefit if you’re performing INSERT with multiple values? We build up INSERTS on our clients and insert values 50 or so at…

Post: MySQL Users Conference - Innodb

…. Fast Index creation will allow Innodb to build indexes by sorting rather by row by row insertions as it currently does which… to be much larger than table itself) The index build speed is however not only reason I can’t wait for… Increment handling Yet another known Innodb problem is table locks which are taken for statement duration for Inserts with auto-increment column…

Post: Innodb row size limitation

… on a customer case where at seemingly random times, inserts would fail with Innodb error 139. This is a rather simple problem…, fterms TEXT, PRIMARY KEY (id) ) Engine=InnoDB; Now you insert some test data into it: mysql> INSERT INTO example -> VALUES ( ->   NULL… a transaction. It will also impact both read and modification speed, precisely for the added join complexity. However, if you have…

Post: My Innodb Feature wishes

… 2 times space compression. Insert buffer for delete. For Insert operation Innodb uses nice tecnique called Insert Buffer which speeds up inserts for non-unique indexes… times+ slower, which is especially bad for rollback of failed inserts which may take too long to complete Index build by…

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

… engine is MyISAM rather than InnoDB. Loading the data was done via a simple Perl script, inserting one row at a time… improving bulk insert performance. At the very bottom, the page claims that you can speed up bulk loading into an InnoDB FT index….00 sec) mysql> insert into dir_test_innodb (full_name, details) SELECT reverse(full_name), details FROM dir_test_innodb WHERE id < 500000…

Post: How InnoDB handles REDO logging

InnoDB cannot log at all, your transaction will never complete. Both the MySQL configuration and hardware will affect the speed at which InnoDB can log. You can request that InnoDB force its REDO records to the… to the speed at which check-pointing can occur. In order to insert a new record in the transaction log, InnoDB must ensure…

Post: Thinking about running OPTIMIZE on your Innodb Table ? Stop!

…ability to build indexes by sort instead of via insertion. This process can be a lot faster, … NULL, PRIMARY KEY (`id`), KEY `c` (`c`) ) ENGINE=InnoDB AUTO_INCREMENT=12582913 DEFAULT CHARSET=latin1 mysql> select … 10 minutes, which is close than 20x speed difference and more compact index in the end…

Comment: Using MyISAM in production

… say for example, MyISAM default insert speed is great, but InnoDB default insert speed is poor. (I have seen your InnoDB optimization presentation, and done the…