Closed Bug 508186 Opened 16 years ago Closed 16 years ago

Speed up UTF-8 table conversion in checksetup

Categories

(Bugzilla :: Installation & Upgrading, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.6

People

(Reporter: mkanat, Assigned: mkanat)

References

Details

(Whiteboard: [es-gnome])

Attachments

(2 files)

Right now we issue two ALTER TABLE commands for every column that we're updating. Instead, we should just issue two ALTER TABLE commands for the whole table, when doing the UTF-8 conversion.
Attached patch v1Splinter Review
Tested, works in all the various upgrading situations. (Note that we no longer need special code for the old fulltext indexes because the InnoDB upgrade process already handles that.)
Assignee: installation → mkanat
Status: NEW → ASSIGNED
Attachment #392424 - Flags: review+
Holding approval until blocker is ready. Note that I need to fix the grammar when I check this in: "to UTF-8" in the message.
Flags: approval?
Checking in Bugzilla/DB/Mysql.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/DB/Mysql.pm,v <-- Mysql.pm new revision: 1.75; previous revision: 1.74 done
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Flags: approval? → approval+
Resolution: --- → FIXED
Apparently I sped it up so much that it doesn't work at all anymore. (Tables are changed to utf8, but columns stay latin1, for some reason.)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attached patch FixSplinter Review
Okay, this fixes it. Granting myself review as module owner.
Attachment #393271 - Flags: review+
Checking in Bugzilla/DB/Mysql.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/DB/Mysql.pm,v <-- Mysql.pm new revision: 1.76; previous revision: 1.75 done
Status: REOPENED → RESOLVED
Closed: 16 years ago16 years ago
Resolution: --- → FIXED
Oh, and the new patch also included another optimization--we throw the DEFAULT CHARACTER SET change in with the column changes, if there are column changes.
Whiteboard: [es-gnome]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: