Skip to content

Commit

Permalink
Fixing id1_type index instruction. Without adding id2, range scans
Browse files Browse the repository at this point in the history
not including id2 column do not use covering index, if storage
engines do not include primary key values within secondary index
(i.e. MyISAM).
  • Loading branch information
yoshinorim committed Sep 4, 2014
1 parent 5c879c9 commit adb0391
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ After loading you should revert the changes:
set global innodb_flush_log_at_trx_commit = 1;
set global sync_binlog = 1;
alter table linktable add key `id1_type`
(`id1`,`link_type`,`visibility`,`time`,`version`,`data`);
(`id1`,`link_type`,`visibility`,`time`,`id2`,`version`,`data`);

Request Phase
-------------
Expand Down

0 comments on commit adb0391

Please sign in to comment.