Closed
Bug 417395
Opened 16 years ago
Closed 16 years ago
Optimize use of shadow db in app_controller
Categories
(addons.mozilla.org Graveyard :: Administration, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
3.2
People
(Reporter: morgamic, Assigned: morgamic)
Details
Attachments
(1 file, 1 obsolete file)
5.61 KB,
patch
|
clouserw
:
review+
|
Details | Diff | Splinter Review |
This afternoon we did an audit of useDbConfig and what app models were doing with what data source. More models can be using the slaves to give the master db a rest. This is a tracker bug for optimizing use of our db slaves and the rotation of weighted servers set using the feature from bug 400451.
Assignee | ||
Comment 1•16 years ago
|
||
This allows us to iterate through Controller->uses and set useDbConfig for controller models and their associated models, goes down 1 level through associations. Also added manual useDbConfig sets to force certain queries to use the shadow db in the AMO component. Did not do this for checkOwnership() though.
Attachment #303192 -
Flags: review?(clouserw)
Assignee | ||
Comment 2•16 years ago
|
||
Attachment #303192 -
Attachment is obsolete: true
Attachment #303199 -
Flags: review?(clouserw)
Attachment #303192 -
Flags: review?(clouserw)
Comment 3•16 years ago
|
||
Comment on attachment 303199 [details] [diff] [review] v2, adding cache headers for rest layout This is already live, so...yay.
Attachment #303199 -
Flags: review?(clouserw) → review+
Assignee | ||
Updated•16 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Updated•8 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•