Skip to content

Commit ee0687d

Browse files
authored
Merge pull request #2927 from artsy/joeyAghion/dev
Create additional articles index as recommended by Atlas (PLATFORM-3169)
2 parents 7a29f53 + 6716750 commit ee0687d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Run like:
2+
//
3+
// mongo "mongodb+srv://<host>/app29923450" --username positron2 --password <redacted> scripts/db/<filename>
4+
5+
db.articles.createIndex(
6+
{
7+
fair_ids: 1,
8+
published: 1,
9+
published_at: -1
10+
},
11+
{ background: true }
12+
)

0 commit comments

Comments
 (0)