2020-05-17から1日間の記事一覧

フルスキャンとインデックスアクセス

DB

MySQL (5.6) テーブルの件数:100万取得件数:1万,10万,100万フルスキャンとインデックスアクセスの処理時間を比較 drop table tab1;drop table tab2; create table tab1(col1 int);create table tab2(col1 int); alter table tab2 add constraint tab2pk prim…

更新処理へのインデックス数の影響

DB

MySQL (5.6) カラム数1000のテーブルを作り、インデックス数:0,10,64とした場合の更新時間を測定 --1.テーブル作成 drop table tab1; drop procedure proc1; delimiter //create procedure proc1()begin declare i int; set @q := 'create table tab1(col1 i…