Closed Bug 1022923 Opened 10 years ago Closed 10 years ago

Add index to bug_user_last_visit.last_visit_ts

Categories

(Bugzilla :: Bugzilla-General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 5.0

People

(Reporter: dylan, Assigned: dylan)

Details

Attachments

(1 file, 2 obsolete files)

No description provided.
Attachment #8437228 - Flags: review?(glob)
Comment on attachment 8437228 [details] [diff] [review] bugzilla-upstream-add-index.patch Review of attachment 8437228 [details] [diff] [review]: ----------------------------------------------------------------- you also need to update the table's definition in Bugzilla/DB/Schema.pm ::: Bugzilla/Install/DB.pm @@ +714,5 @@ > # 2013-08-26 sgreen@redhat.com - Bug 903895 > _fix_components_primary_key(); > > + # 2014-06-09 dylan@mozilla.com - Bug 1022923 > + $dbh->bz_add_index('bug_user_last_visit', 'bug_user_last_visit_last_visit_ts_idx', ['last_visit_ts']); this line's a bit on the long side, please wrap
Attachment #8437228 - Flags: review?(glob) → review-
Patch was authored in my bmo directory (and then ported to upstream) so it had the bmo line length limit instead of the bugzilla one. Fixed.
Attachment #8437228 - Attachment is obsolete: true
Attachment #8437674 - Flags: review?(glob)
Comment on attachment 8437674 [details] [diff] [review] bugzilla-upstream-add-index-v2.patch Review of attachment 8437674 [details] [diff] [review]: ----------------------------------------------------------------- you also need to update the table's definition in Bugzilla/DB/Schema.pm, as that's the canonical schema definition.
Attachment #8437674 - Flags: review?(glob) → review-
Missed the schema definition, included here.
Attachment #8437674 - Attachment is obsolete: true
Attachment #8438115 - Flags: review?(glob)
Comment on attachment 8438115 [details] [diff] [review] bugzilla-upstream-add-index-v2.1.patch Review of attachment 8438115 [details] [diff] [review]: ----------------------------------------------------------------- r=glob
Attachment #8438115 - Flags: review?(glob) → review+
Flags: approval+
Target Milestone: --- → Bugzilla 5.0
To gitolite3@git.mozilla.org:bugzilla/bugzilla.git 6f1a5f0..eb13c38 master -> master Should I also commit this to bmo?
To gitolite3@git.mozilla.org:webtools/bmo/bugzilla.git 9d30ede..9916f57 master -> master
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: