Bug 70605 - Prefix search in MySQL is VERY VERY VERY SLOW. Do not use it, as we are anyway searching on stemmed terms.
git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1339 6955db30-a419-402b-8a0d-67ecbb4d7f56master
parent
1cd0581b27
commit
9f54993575
|
@ -197,8 +197,7 @@ sub sql_fulltext_search
|
||||||
# make search a boolean mode search
|
# make search a boolean mode search
|
||||||
for (@words)
|
for (@words)
|
||||||
{
|
{
|
||||||
if (/^\d+$/) { $_ = "+$_"; }
|
$_ = "+$_";
|
||||||
elsif (/\w$/) { $_ = "+$_*"; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$text = join '', @words;
|
$text = join '', @words;
|
||||||
|
@ -702,7 +701,7 @@ EOT
|
||||||
my @non_utf8_tables = grep(defined($_->{Collation}) && $_->{Collation} !~ /^utf8/, @$utf_table_status);
|
my @non_utf8_tables = grep(defined($_->{Collation}) && $_->{Collation} !~ /^utf8/, @$utf_table_status);
|
||||||
|
|
||||||
if (Bugzilla->params->{'utf8'} && scalar @non_utf8_tables) {
|
if (Bugzilla->params->{'utf8'} && scalar @non_utf8_tables) {
|
||||||
print <<EOT;
|
print <<EOF;
|
||||||
|
|
||||||
WARNING: We are about to convert your table storage format to UTF8. This
|
WARNING: We are about to convert your table storage format to UTF8. This
|
||||||
allows Bugzilla to correctly store and sort international characters.
|
allows Bugzilla to correctly store and sort international characters.
|
||||||
|
@ -718,16 +717,16 @@ WARNING: We are about to convert your table storage format to UTF8. This
|
||||||
If you ever used a version of Bugzilla before 2.22, we STRONGLY
|
If you ever used a version of Bugzilla before 2.22, we STRONGLY
|
||||||
recommend that you stop checksetup.pl NOW and run contrib/recode.pl.
|
recommend that you stop checksetup.pl NOW and run contrib/recode.pl.
|
||||||
|
|
||||||
EOT
|
EOF
|
||||||
|
|
||||||
if (!Bugzilla->installation_answers->{NO_PAUSE}) {
|
if (!Bugzilla->installation_answers->{NO_PAUSE}) {
|
||||||
if (Bugzilla->installation_mode ==
|
if (Bugzilla->installation_mode ==
|
||||||
INSTALLATION_MODE_NON_INTERACTIVE)
|
INSTALLATION_MODE_NON_INTERACTIVE)
|
||||||
{
|
{
|
||||||
print <<EOT;
|
print <<EOF;
|
||||||
Re-run checksetup.pl in interactive mode (without an 'answers' file)
|
Re-run checksetup.pl in interactive mode (without an 'answers' file)
|
||||||
to continue.
|
to continue.
|
||||||
EOT
|
EOF
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -739,7 +738,7 @@ EOT
|
||||||
print "Converting table storage format to UTF-8. This may take a",
|
print "Converting table storage format to UTF-8. This may take a",
|
||||||
" while.\n";
|
" while.\n";
|
||||||
my @dropped_fks;
|
my @dropped_fks;
|
||||||
foreach my $table ($self->bz_table_list_real) {
|
foreach my $table (map { $_->{Name} } @non_utf8_tables) {
|
||||||
my $info_sth = $self->prepare("SHOW FULL COLUMNS FROM $table");
|
my $info_sth = $self->prepare("SHOW FULL COLUMNS FROM $table");
|
||||||
$info_sth->execute();
|
$info_sth->execute();
|
||||||
my (@binary_sql, @utf8_sql);
|
my (@binary_sql, @utf8_sql);
|
||||||
|
|
Loading…
Reference in New Issue