We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e3a6d9 commit 3dab35eCopy full SHA for 3dab35e
scripts/db/20210225101205_add_articles_indices.js
@@ -0,0 +1,25 @@
1
+// Run like:
2
+//
3
+// mongo "mongodb+srv://<host>/app29923450" --username positron2 --password <redacted> scripts/db/20210225101205_add_articles_indices.js
4
+
5
+db.articles.createIndex(
6
+ {
7
+ partner_channel_id: 1,
8
+ tags: 1,
9
+ featured: 1,
10
+ published: 1,
11
+ published_at: -1
12
+ },
13
+ { background: true }
14
+)
15
16
17
18
+ channel_id: 1,
19
20
21
22
23
24
25
0 commit comments