These were added in prod mongo directly:
db.blog_post.ensureIndex({state: 1, app_config_id: 1, timestamp: -1}, {background: true});
db.blog_post.ensureIndex({state: 1, neighborhood_id: 1, timestamp: -1}, {background: true});
Need to add them in the class definition. Consider switching the order of the fields in these queries and removing the app_config_id-only index.
Diff:
db/6379 has new mailbox index
New BlogPost indexes on tv/6379.
Seems like the bare
app_config_id
index comes from theArtifact
class and isn't something we can easily get rid of right now.And fwiw, I'm pretty sure the order of fields in a query don't matter (since its a dict). Just the order of fields in an index do.