Update for last week (2020-03-30~ 2020-04-05)
MySQL Weeklyでは1週間ごとにMySQLのrelease-note, bug, official blog, organizationによるblog, 個人のblogをまとめ紹介しています。 更新は月曜 10時(AM)です。先週一週間のMySQL関連の更新を再確認するのにご活用ください。
また、このブログ記事はGitHub上で管理されていますMySQL-weekly repository。Issue, pull-request歓迎です。(完全に同期できているわけではありません)
Release note
(https://dev.mysql.com/doc/relnotes/mysql/8.0/en/)
- Nothing
Bugs
基本的にMySQL Server, 5.7以上のbug fixのみまとめます
Bug #94283 MySQL 8.0.15 is slower than MySQL 5.7.25
- パフォーマンス劣化、どこがボトルネックかの言及はない
- 5.7.25, 8.0.15の比較(sysbench oltp_read_write)
- singleスレッドではなく
--threads=24
らしい - Bug #99140 8.0 single thread applying performance regression of update_non_index とduplicatedとされている
Bug #99118ARM CRC32 intrinsic call to accelerate table-checksum (not crc32c but crc32)
- arm intrinsicなcrc32 最適化があるらしく、それで性能向上できるため、そのpatchつきreport
- crc32とcrc32cについては以下のように説明されている
crc32 is traditional crc32 found in most of the zip utilities.
crc32c (crc32 Castagnoli) uses different polynomial and a new generation the platform can compute full 32 bit crc32c in 3 cycles.
- MySQLではそれぞれ以下で使われているらしい
MySQL uses both of them. crc32 is used for calculating table and binlog checksum and crc32c for by InnoDB for page-checksum.
Bug #99119 different xor results with float in MySQL 5.7 and MySQL 8.0
- xorでfloat型との演算結果がおかしい
select 0.001 xor 0;
など- 8.0以降でfixed, 比較的大規模なリファクタリングの成果なので5.7以下では修正されない様子
- 回避策として次のような方法が5.7以下でも有効
select '0.001'<>0 xor 0<>0;
Bug #99120 Incorrect result for query that uses an AND operator on floats
- floatとのAND演算がおかしい
- 8.0以降でfixed
- 上記と同じで5.7以前の回避策として次のようにかける
SELECT * FROM t0 WHERE 1<>0 AND 0.4<>0;
Bug #99122 A predicate that compares 0 with -0 yields an incorrect result
0
と-0
の比較結果がおかしい- 8.0.21で直る (比較するデータのどちらかがfloat pointの型の状況で-0と比較すると結果がおかしい様子)
Bug #99131 Segfault on shutdown if started with --create-admin-listener-thread=1 option
--create-admin-listener-thread=1
を設定して--admin-address
を設定しないでmysql-clientからSHUTDOWN
するとsegmentation faultになる- 8.0.20でfixed
Bug #99166 MySQL manual does include LATERAL tables in syntax description for join
- Øystein Grøvlen-sanのreport
- https://dev.mysql.com/doc/refman/8.0/en/join.html のtable_factorが間違っている(修正済み)
Organization blogs
-
- Nothing
-
- Nothing
-
18 Things You Can Do to Remove MySQL Bottlenecks Caused by High Traffic (Part One)
Introducing Metabase, a Simple and Powerful Analytics Tool
- Metabaseという可視化、分析ツールの紹介
- MySQL以外のDBもサポートしている
Tips for MySQL 5.7 Database Tuning and Performance
- 5.7向けのconfig設定によるチューニング方法の紹介
Becoming Familiar With the Little Known SQL Keyword LATERAL
- LATERAL Derived tableのサンプルとtips
-
- Nothing
SmartStyle TECH BLOG (category MySQL)
- Nothing
Personal blogs
When to use NULLable columns in relational databases
- Federico Razzoli-san
- NULLableなカアr無をつかうことによる影響について整理
このブログ記事はGitHub上で管理されていますMySQL-weekly repository。Issue, pull-request歓迎です。(完全に同期できているわけではありません)