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.
Created attachment 303192 [details] [diff] [review] Adding forceShadowDb() to app_controller 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.
Created attachment 303199 [details] [diff] [review] v2, adding cache headers for rest layout
Comment on attachment 303199 [details] [diff] [review] v2, adding cache headers for rest layout This is already live, so...yay.