Vastly speed up searches if a directory name is specified.
git-svn-id: svn://10.0.0.236/trunk@54015 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
49c320b36f
commit
77eb37e301
@ -159,6 +159,12 @@ sub query_checkins {
|
||||
}
|
||||
}
|
||||
|
||||
if (0 < @::query_dirs) {
|
||||
foreach my $i (@::query_dirs) {
|
||||
$qstring .= " and dirs.dir like " . SqlQuote("$i%");
|
||||
}
|
||||
}
|
||||
|
||||
if (defined $::query_file && $::query_file ne '') {
|
||||
my $q = SqlQuote($::query_file);
|
||||
$::query_filetype ||= "exact";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user