質問編集履歴

1

explainの結果を追記。primarykeyの結果も追記

2022/05/24 04:03

投稿

Tank
Tank

スコア1

test CHANGED
File without changes
test CHANGED
@@ -48,4 +48,25 @@
48
48
    count = 354,868
49
49
    処理時間=0.8秒ほど
50
50
 
51
+ ------
51
52
 
53
+ explainを実行した結果は以下のとおりです。
54
+ ```MySQL
55
+ explain select count(*) from MyTable;
56
+ ```
57
+ ![イメージ説明](https://ddjkaamml8q8x.cloudfront.net/questions/2022-05-24/1aacd8cc-38f7-40e3-9821-9261095f38b2.png)
58
+
59
+
60
+ ```MySQL
61
+ explain select
62
+ max(length(longblobData)) as max,
63
+ min(length(longblobData)) as min,
64
+ avg(length(longblobData)) as average,
65
+ count(longblobData) as count
66
+ from MyTable
67
+ ```
68
+ ![イメージ説明](https://ddjkaamml8q8x.cloudfront.net/questions/2022-05-24/fb8bb55b-6916-4930-bd50-c0d39bb4b689.png)
69
+
70
+ ----
71
+ またprimarykeyは設定されているようです。
72
+ ![イメージ説明](https://ddjkaamml8q8x.cloudfront.net/questions/2022-05-24/2f5acd12-f4fe-4f9b-ae96-d10f89de54e6.png)