in the checkins table, make the descid indexed to speed up queries. For this field to be indexed, its definition needs to disallow null entries.
git-svn-id: svn://10.0.0.236/trunk@83160 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -136,7 +136,7 @@ create table checkins (
|
||||
branchid mediumint not null,
|
||||
addedlines int not null,
|
||||
removedlines int not null,
|
||||
descid mediumint,
|
||||
descid mediumint not null,
|
||||
|
||||
unique (repositoryid,dirid,fileid,revision),
|
||||
index(ci_when),
|
||||
@@ -144,7 +144,8 @@ create table checkins (
|
||||
index(repositoryid),
|
||||
index(dirid),
|
||||
index(fileid),
|
||||
index(branchid)
|
||||
index(branchid),
|
||||
index(descid)
|
||||
);
|
||||
|
||||
show columns from checkins;
|
||||
|
||||
Reference in New Issue
Block a user