Closed
Bug 811650
Opened 13 years ago
Closed 13 years ago
Bugzilla::Classification->new() queries the database multiple times for the same information when displaying a bug
Categories
(Bugzilla :: Bugzilla-General, defect)
Bugzilla
Bugzilla-General
Tracking
()
RESOLVED
DUPLICATE
of bug 811280
People
(Reporter: glob, Assigned: glob)
References
Details
(Keywords: perf)
Attachments
(1 file)
|
538 bytes,
patch
|
dkl
:
review+
|
Details | Diff | Splinter Review |
Bugzilla::Classification->new() is called multiple times when displaying a bug.
each call results in a round trip to the database to fetch the classifications's row.
this is inefficient.
this happens because we iterate over each product's classification, and each product creates their own unique instance of a classification object.
we should use the request cache and share a single classification object between products from the same classification.
Attachment #681396 -
Flags: review?(dkl)
Updated•13 years ago
|
Severity: major → normal
Comment 2•13 years ago
|
||
Comment on attachment 681396 [details] [diff] [review]
patch v1
Review of attachment 681396 [details] [diff] [review]:
-----------------------------------------------------------------
Looks fine and works as expected. r=dkl
Attachment #681396 -
Flags: review?(dkl) → review+
hold off on approval for this; i'm playing around with a more generic approach to caching of objects for bug 811280, which i may reuse here.
this has been fixed in a more generic way on bug 811280
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•