Closed
Bug 815532
Opened 12 years ago
Closed 12 years ago
Bugzilla::User objects should be cached where appropriate
Categories
(Bugzilla :: Bugzilla-General, enhancement)
Bugzilla
Bugzilla-General
Tracking
()
RESOLVED
FIXED
Bugzilla 5.0
People
(Reporter: glob, Assigned: glob)
Details
Attachments
(1 file)
4.24 KB,
patch
|
dkl
:
review+
|
Details | Diff | Splinter Review |
the object cache introduced in bug 811280 should be extended so user objects are also cached.
Attachment #685514 -
Flags: review?(dkl)
Comment 2•12 years ago
|
||
Comment on attachment 685514 [details] [diff] [review] patch v1 Review of attachment 685514 [details] [diff] [review]: ----------------------------------------------------------------- Missing Bugzilla::Comment::author Also I don't think it would be too difficult to add caching calls to the Bugzilla::Object::new_from_list method which would be a big help as well. new_from_list is used quite a bit for preloading and other places which means that if new_from_lists loads a set of users, and then later Bugzilla::User->new is called for the same user id then it is reloaded from the db.
Attachment #685514 -
Flags: review?(dkl) → review-
Comment on attachment 685514 [details] [diff] [review] patch v1 (In reply to David Lawrence [:dkl] from comment #2) > Also I don't think it would be too difficult to add caching calls to the > Bugzilla::Object::new_from_list method which would be a big help as well. agreed, but i'd like to address that in another bug. i don't think it would be a simple change, as new_from_list doesn't call the normal object creation methods, so it's possible we'll hit problems where we cache objects which haven't been initialised fully. filed as bug 819420, re-requested review.
Attachment #685514 -
Flags: review- → review?
Comment 4•12 years ago
|
||
Comment on attachment 685514 [details] [diff] [review] patch v1 Review of attachment 685514 [details] [diff] [review]: ----------------------------------------------------------------- Be sure to add Bugzilla::Comment::author on commit. r=dkl
Attachment #685514 -
Flags: review? → review+
Updated•12 years ago
|
Severity: normal → enhancement
Flags: approval? → approval+
OS: Mac OS X → All
Hardware: x86 → All
Target Milestone: --- → Bugzilla 5.0
Committing to: bzr+ssh://bjones%40mozilla.com@bzr.mozilla.org/bugzilla/trunk/ modified Bugzilla/Attachment.pm modified Bugzilla/Bug.pm modified Bugzilla/Comment.pm modified Bugzilla/Component.pm modified Bugzilla/Flag.pm Committed revision 8519.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•