Skip to content

Commit

Permalink
Merge pull request #2927 from artsy/joeyAghion/dev
Browse files Browse the repository at this point in the history
Create additional articles index as recommended by Atlas (PLATFORM-3169)
  • Loading branch information
jonallured authored Mar 2, 2021
2 parents 7a29f53 + 6716750 commit ee0687d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scripts/db/20210302105100_add_articles_index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Run like:
//
// mongo "mongodb+srv://<host>/app29923450" --username positron2 --password <redacted> scripts/db/<filename>

db.articles.createIndex(
{
fair_ids: 1,
published: 1,
published_at: -1
},
{ background: true }
)

0 comments on commit ee0687d

Please sign in to comment.