Closed
Bug 508186
Opened 16 years ago
Closed 16 years ago
Speed up UTF-8 table conversion in checksetup
Categories
(Bugzilla :: Installation & Upgrading, enhancement)
Tracking
()
RESOLVED
FIXED
Bugzilla 3.6
People
(Reporter: mkanat, Assigned: mkanat)
References
Details
(Whiteboard: [es-gnome])
Attachments
(2 files)
6.65 KB,
patch
|
mkanat
:
review+
|
Details | Diff | Splinter Review |
1.63 KB,
patch
|
mkanat
:
review+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•16 years ago
|
||
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 | ||
Comment 2•16 years ago
|
||
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?
Assignee | ||
Comment 3•16 years ago
|
||
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
Assignee | ||
Comment 4•16 years ago
|
||
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 → ---
Assignee | ||
Comment 5•16 years ago
|
||
Okay, this fixes it. Granting myself review as module owner.
Attachment #393271 -
Flags: review+
Assignee | ||
Comment 6•16 years ago
|
||
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 ago → 16 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 7•16 years ago
|
||
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.
Assignee | ||
Updated•16 years ago
|
Whiteboard: [es-gnome]
You need to log in
before you can comment on or make changes to this bug.
Description
•