# mysql
mysql> show global variables like '%slow_query%';
+---------------------+-------------------------------+
| Variable_name | Value |
+---------------------+-------------------------------+
| slow_query_log | ON |
本演習はDatabase:testを用いて行うこと。演習では2つのターミナルで各々mysql clientでDatabase:testに接続すること。
演習:自動コミット(演習分)(解説2分)
演習:手動コミット(commit編)(演習5分)(解説2分)
演習:手動コミット(rollback編)(演習5分)(解説2分)
演習:悲観ロック(SELECT FOR UPDATE)(演習5分)(解説2分)
演習:ロック(一般的なINSERT、UPDATE)(演習5分)(解説2分)
Question ロストアップデート対策(回答15分)(解説5分)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://twitter.com/tech_voyage | |
# blog | |
http://techlog.voyagegroup.com/entry/2015/11/26/094922 | |
# techtrain | |
https://tech-train.dojo-voyage.net/ | |
techtrain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 5章 EAV(エンティティ・アトリビュート・バリュー) | |
## intro | |
``` | |
SELECT date_reported, COUNT(*) | |
FROM Bugs | |
GROUP BY date_reported; | |
``` | |
## 5.2 アンチパターン:汎用的な属性テーブルを使用する |
NewerOlder