diff --git a/git-cvsserver.perl b/git-cvsserver.perl
index 08ad831a3900d4ac0bc04b4e9bd371ffcb54e1ae..8817f8bb4f7c6b69d186c70d83cfb49b1fcea80e 100755 (executable)
--- a/git-cvsserver.perl
+++ b/git-cvsserver.perl
mode TEXT NOT NULL
)
");
+ $self->{dbh}->do("
+ CREATE INDEX revision_ix1
+ ON revision (name,revision)
+ ");
+ $self->{dbh}->do("
+ CREATE INDEX revision_ix2
+ ON revision (name,commithash)
+ ");
}
- # Construct the revision table if required
+ # Construct the head table if required
unless ( $self->{tables}{head} )
{
$self->{dbh}->do("
mode TEXT NOT NULL
)
");
+ $self->{dbh}->do("
+ CREATE INDEX head_ix1
+ ON head (name)
+ ");
}
# Construct the properties table if required