11.07.2015 Views

MySQL 5.7 Release Notes - Download - MySQL

MySQL 5.7 Release Notes - Download - MySQL

MySQL 5.7 Release Notes - Download - MySQL

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>MySQL</strong> <strong>5.7</strong> <strong>Release</strong> <strong>Notes</strong>• Code instrumented with Valgrind did not preallocate memory in alloc_root(), to help findbugs. This behavior is now also enabled if ASAN (address sanitizer) is used. (Bug #44582, Bug#11753184)• mysql_install_db provides a more informative diagnostic message when required Perl modulesare missing. (Bug #69844, Bug #18187451)• <strong>MySQL</strong> now supports server-side timeouts for execution of SELECT statements:• SELECT supports a MAX_STATEMENT_TIME option to specify a timeout for individual queries. Forexample:SELECT MAX_STATEMENT_TIME = 5000 id, name FROM my_table WHERE ...• The max_statement_time system variable specifies the timeout value for SELECT statementsexecuted within the session that include no MAX_STATEMENT_TIME option. If the value is 0,timeouts are not enabled.• The Max_statement_time_exceeded, Max_statement_time_set, andMax_statement_time_set_failed status variables provide information about SELECTstatements affected by timeouts.Timeout values are in milliseconds.For more information, see SELECT Syntax, and Server System Variables.Thanks to Davi Arnaut for the patch on which this feature is based. (Bug #68252, Bug #16271666)• The metadata locking subsystem implementation now uses lock-free hashing rather than a hashprotected by a mutex. An implication of this change is that the metadata_locks_cache_sizeand metadata_locks_hash_instances system variables no longer have any effect, so they aredeprecated and will be removed in a future <strong>MySQL</strong> release.• The deprecated IGNORE clause for ALTER TABLE has been removed and its use produces an error.• The metadata locking subsystem now uses a lock-free algorithm for acquiring and releasing lockstypical for DML statements. This gives better performance/scalability on multi-core machines inworkloads involving lots of small read-only transactions.• The server can now report session-state changes to client programs. Reportable session stateconsists of these values:• The default schema (database)• Session-specific values for system variables• User-defined variables• Temporary tables• Prepared statementsThe <strong>MySQL</strong> client/server protocol now includes tracker information so that session state changescan be detected. One use for the tracker mechanism is that it provides a means for <strong>MySQL</strong>Connectors, Fabric, and client applications to determine whether any session context is available toensure session migration from one server to another. (To change connections in a load-balancedenvironment, it is necessary to detect whether there is session state to take into consideration whendeciding whether a switch can be made.)The user interface to control the tracker and retrieve state-change information from it has thefollowing components, which enable implementation of state-change tracking on the client side:21

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!