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)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: morgamic, Assigned: morgamic)

Details

Attachments

(1 file, 1 obsolete file)

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.
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)
Attachment #303192 - Attachment is obsolete: true
Attachment #303199 - Flags: review?(clouserw)
Attachment #303192 - Flags: review?(clouserw)
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+
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: