June 18, 2013

Post: Recovering from a bad UPDATE statement

table without a WHERE clause?  Did you know that in MySQL 5.5 that sometimes you can recover from a1, old version of @2 to the new version of @2, etc. Reverse the entries row entries and create

Post: Beware the Innodb Table Monitor

a lot murkier than it is now.   To use it, you create a table (in any database you choose), like this: CREATE TABLE innodb_table_monitor (atable, at least in the latest Percona Server 5.1 in: storage/innodb_plugin/dict/dict0load.c: line 226, and again in

Post: InnoDB Full-text Search in MySQL 5.6: Part 2, The Queries!

in MySQL 5.6: Part 2, The Queries![/caption] This is part 2 in a 3 part series. In part 1, we took ain the MySQL 5.6 documentation; every place where it talks about creating one of these stopword tables, it simply mentions the table

Comment: MySQL Server Memory Usage

0% 0.0% 9.5% 0.0% 0.3% 6.5% 68.4% cpu00 22.1% 0.0% 11.1% 0.1% 1.1% 6.1% 59.1% cpu01 14.9% 0.0% 7.5% 0.0% 0.0% 5.9% 71.5% cpu02 10.5% 0.0% 12.5% 0.0% 0.1% 7.1

Post: The case for getting rid of duplicate “sets”

5.49 sec) Now, what if I structure my data differently? We can “compress” the table in the database by removing the duplicates: mysql> create tablein my set? First, lets create a table to hold the set of numbers (and their desired minimum cardinality) to a “search set” table: CREATE TABLE

Post: MySQL 5.5 and MySQL 5.6 default variable values differences

… than 200 tables in this system. innodb_stats_on_metadata is disabled by default in MySQL 5.6 Welcome …tables or if you do many create/drop of innodb tables. optimizer_switch is the catch all variable for a…_index_extensions=on 1 row in set (0.00 sec) Summary: MySQL 5.6 comes with quite a few changes …

Post: Replication checksums in MySQL 5.6

0 rows affected (0,00 sec) Now let’s write something on the master: master [localhost] {msandbox} ((none)) > create database sakila; Query OK, 1in MySQL 5.6 will ensure data integrity in all scenarios, but they do improve reliability of the whole replication process. This is a

Post: TMP_TABLE_SIZE and MAX_HEAP_TABLE_SIZE

mysql.com/doc/refman/5.0/en/memory-storage-engine.html MEMORY table contents are stored in memory, which is a property that MEMORY tablestable_size system variable to impose a maximum size on MEMORY tables. For individual tables, you can also specify a MAX_ROWS table option in the CREATE TABLE

Post: A case for MariaDB's Hash Joins

… CHARSET=latin1 CREATE TABLE `orders` ( `o_orderkey` int(11) NOT NULL DEFAULT ‘0‘, `o_custkey` int(11) DEFAULT NULL, `o_orderstatus` char(1) DEFAULT… so MySQL 5.5 prefers to do a PRIMARY index scan of the table orders resulting in sequential IO, while both MySQL 5.6 and MariaDB 5.5 prefer to…

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

…DATE_FORMAT(order_date,’%Y%m’)) 1 row in set, 1 warning (0.00 sec) The complete … not much different from building a table with CREATE TABLE .. AS SELECT. In fact, this is …created: mysql> call flexviews.enable( -> flexviews.get_id(‘demo’,'dashboard_top_customers’)); Query OK, 0 rows affected (5