June 19, 2013

Post: Implementing SchemaSpy in your MySQL environment

… between tables versus observing queries only.  An additional benefit …sandbox: description=MySQL driver=com.mysql.jdbc.Driver connectionSpec=jdbc:mysql://127…., number of children, parents, count of columns, row counts, and comments — a … and can then write into your metadata file. Donate – …

Comment: MySQL Partitioning - can save you or kill you

…but there are generally other considerations to take into account. He also didn’t answer the ‘Insert’… do queries on any other column, these could easily be quicker on a partitioned table, as Mysql can … quicker than deleting a few hundred thousand rows… for example, if you need to delete. However…

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

….schema … AS SELECT” and/or “INSERT INTO db.schema … AS SELECT” statements from …Note that every MV gets a special column `mview$pk` which is an auto…Query OK, 0 rows affected (42 min 42.14 sec) mysql> call flexviews.enable( -> flexviews.get_id(‘demo’,'dashboard_customer_sales’)); Query OK, 0 rows

Post: MySQL 5.6.10 Optimizer Limitations: Index Condition Pushdown

… execute than the same “SELECT one_indexed_columnquery in MySQL 5.6.10. This turned into a really nice exercise for checking the…_INCREMENT=22187769 DEFAULT CHARSET=utf8; The table had 22 million rows, with approximately 8 million of them having role_id = 1…-party, independent and technical opinion about the new features of MySQL query planner? Are you not yet familiar with terms like MRR…

Post: To SQL_CALC_FOUND_ROWS or not to SQL_CALC_FOUND_ROWS?

…): mysql_connect(“127.0.0.1″, “root”); mysql_select_db(“test”); for ($i = 0; $i < 10000000; $i++) { $b = $i % 1000; mysql_query(“INSERT INTO count… perform some query on this table using indexed column b in where clause: mysql> SELECT SQL_NO_CACHE SQL_CALC_FOUND_ROWS * FROM count…

Post: How to recover deleted rows from an InnoDB Tablespace

rows from the ibd file and import them into the database. The time between the deletion of rows…/salaries, id 18, flags 1, columns 7, indexes 2, appr.rows 2844513 [...] INDEX: name PRIMARY, id…date); Query OK, 3 rows affected (0.01 sec) Records: 3 Deleted: 0 Skipped: 0 Warnings: 0 mysql (employees) …

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

…FTS_DOC_ID column, however, MySQL apparently has no problem with either of the following statements: mysql> insert into dir_test_innodb3 …+—————————+———+ 10 rows in set (0.00 sec) mysql> delete from dir_test_innodb LIMIT 200000; Query OK, 200000 rows affected (8.65 sec) mysql>…

Post: Eventual Consistency in MySQL

… shows us which rows in Bar are orphans. mysql> INSERT INTO Foo (A,B) VALUES (111,2222), (333,444); mysql> INSERT INTO Bar (ID,X… SQL queries for quality control: mysql> CREATE TABLE test.MY_KEY_COLUMN_USAGE LIKE INFORMATION_SCHEMA.KEY_COLUMN_USAGE; mysql> INSERT INTO test.MY_KEY_COLUMN_USAGE…

Post: Multi Column indexes vs Index Merge

… example when you query AGE=18 with single column BTREE index MySQL will dive into the index to find first matching row and when will… made columns i1 and i2 independent in this case each selecting about 1% rows from this table which contains about 10M rows. mysql [localhost... columns i1 and i2 highly correlated. In fact they are now the same: mysql [localhost] {msandbox} (test) > update idxtest set i2=i1; Query