Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
7e546edc
Commit
7e546edc
authored
Jul 12, 2005
by
bugreport%peshkin.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 299156: Reduce saniitycheck submitter_id time for large sites
Patch by Joel Peshkin <bugreport@peshkin.net> r=mkanat, a=justdave
parent
07578c0a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
Schema.pm
Bugzilla/DB/Schema.pm
+1
-1
checksetup.pl
checksetup.pl
+10
-2
No files found.
Bugzilla/DB/Schema.pm
View file @
7e546edc
...
...
@@ -310,7 +310,7 @@ use constant ABSTRACT_SCHEMA => {
INDEXES
=>
[
attachments_bug_id_idx
=>
[
'bug_id'
],
attachments_creation_ts_idx
=>
[
'creation_ts'
],
attachments_submitter_id_idx
=>
[
'submitter_id'
],
attachments_submitter_id_idx
=>
[
'submitter_id'
,
'bug_id'
],
],
},
...
...
checksetup.pl
View file @
7e546edc
...
...
@@ -3771,8 +3771,6 @@ if ($emptygroupid) {
}
# 2005-02-12 bugreport@peshkin.net, bug 281787
$dbh
->
bz_add_index
(
'attachments'
,
'attachments_submitter_id_idx'
,
[
qw(submitter_id)
]);
$dbh
->
bz_add_index
(
'bugs_activity'
,
'bugs_activity_who_idx'
,
[
qw(who)
]);
# This lastdiffed change and these default changes are unrelated,
...
...
@@ -3993,6 +3991,16 @@ AddGroup('editcomponents', 'Can create, destroy, and edit components.');
AddGroup
(
'editkeywords'
,
'Can create, destroy, and edit keywords.'
);
AddGroup
(
'admin'
,
'Administrators'
);
# 2005-06-29 bugreport@peshkin.net, bug 299156
if
(
$dbh
->
bz_index_info
(
'attachments'
,
'attachments_submitter_id_idx'
)
&&
(
scalar
(
@
{
$dbh
->
bz_index_info
(
'attachments'
,
'attachments_submitter_id_idx'
)
->
{
FIELDS
}})
<
2
)
)
{
$dbh
->
bz_drop_index
(
'attachments'
,
'attachments_submitter_id_idx'
);
}
$dbh
->
bz_add_index
(
'attachments'
,
'attachments_submitter_id_idx'
,
[
qw(submitter_id bug_id)
]);
if
(
!
GroupDoesExist
(
"editbugs"
))
{
my
$id
=
AddGroup
(
'editbugs'
,
'Can edit all bug fields.'
,
".*"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment