Closed
Bug 504663
Opened 16 years ago
Closed 15 years ago
tiki-rename_page.php times out for popular articles (optimise)
Categories
(support.mozilla.org :: General, defect)
support.mozilla.org
General
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: paulc, Assigned: paulc)
References
Details
(Whiteboard: sumo_only)
Attachments
(1 file)
921 bytes,
patch
|
laura
:
review-
|
Details | Diff | Splinter Review |
Started from bug 444510, the code in wikilib->wiki_rename_page needs to be optimised. Renaming of popular articles times out and creates inconsistencies in the db.
Most of the work to rename is being done because tiki database tables do not use numeric id's to identify objects. For this specific situation, the page name is the primary key. Thus, changing the primary key causes huge overhead.
The long term solution is to redesign the tiki database to work with numeric id's rather than strings. Cheng mentioned a bug already filed about this latter aspect but I couldn't find it.
Assignee | ||
Comment 1•16 years ago
|
||
This is at least better practice than the current code. Constructing a new object for every row in the result could be a significant slowdown. Hopefully it helps with bug 444510.
Assignee: nobody → paul.craciunoiu
Attachment #389000 -
Flags: review?(smirkingsisyphus)
Attachment #389000 -
Flags: review?(laura)
Comment 2•16 years ago
|
||
Did you profile or benchmark this?
All optimizations need to be done emprirically, otherwise it's just a waste of time.
Comment 3•16 years ago
|
||
Comment on attachment 389000 [details] [diff] [review]
patch, v1
This doesn't look like an optiization. Benchmark and resubmit when you have proof.
Attachment #389000 -
Flags: review?(smirkingsisyphus)
Attachment #389000 -
Flags: review?(laura)
Attachment #389000 -
Flags: review-
Assignee | ||
Updated•15 years ago
|
Whiteboard: tiki_bug
Comment 4•15 years ago
|
||
It does not look like this was ever applied. I also agree with Laura's comment. Won't upstream this.
Whiteboard: tiki_bug → sumo_only
Comment 5•15 years ago
|
||
Bugs in tikiwiki, going away.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•