Product owner of the Data / Operations / Tooling team (DOT). MySQL 5.6 1 2 MySQL 8.0 - What we know so far 3 Bonus: Rails ♥ MySQL 4 Agenda @mickeyben github.com/mickey MySQL 5.7 drivy.engineering
update_total * 100 as percentage_of_all FROM events_statements_summary_by_digest, ( SELECT sum(count_star) update_total FROM events_statements_summary_by_digest WHERE digest_text LIKE 'UPDATE%' ) update_totals WHERE digest_text LIKE 'UPDATE%' ORDER BY percentage_of_all DESC LIMIT 10
temporary table, rebuilding the table and reconstructing the secondary indexes will be made • INPLACE: the table change will be made in-place without rebuilding the entire table LOCK: • NONE: Read and write operations are allowed during the altering process. • SHARED: Only read operations are allowed during the altering operations. • EXCLUSIVE: The entire table will be locked for both reading and writing
Even with LOCKING=NONE there’s a brief exclusive locking on the table at the beginning and end of the operation • Replication is blocked during the operation
treated as an OR operator. • It allows operators like +, - and *. • There is no relevance for the keywords, just matches. • NATURAL LANGUAGE: return matches based on relevance. This means the more times the words appear in the text the more relevant it is.
ADD COLUMN `center` POINT NULL DEFAULT NULL; Insert a POINT: INSERT INTO cities SET point = POINT(48.8651494,2.3479951); Create a SPATIAL index: CREATE SPATIAL INDEX `index_center` USING BTREE ON `cities`(`point`);
without actually sending it through the INSERT or UPDATE clauses in SQL. The database resolves what the data will be. They work with: • Mathematical expressions. product_price * quantity • Built-in functions. RIGHT, CONCAT, FROM_UNIXTIME, JSON_EXTRACT, … • Literals. “2”, “new”, 0
better Performance Schema • Parallel replication • Multi source replication • EXPLAIN FOR CONNECTION • Fulltext search optimisations and support for more languages • Performances improved everywhere • Multiple triggers per event per table • SYS schema bundled by default • New mysqlpump utility • ….. http://www.thecompletelistoffeatures.com