#4 - Conversione vecchi dati

This commit is contained in:
2022-09-11 10:16:29 +02:00
parent 051a6a8db2
commit b465e7ef43
3 changed files with 64 additions and 6 deletions
+9 -1
View File
@@ -29,4 +29,12 @@ db.statistics.createIndex({"user.id":1})
db.statistics.createIndex({"stat.type":1,"content.position":1})
db.notizia.ensureIndex({"about.author": "text",sottotitolo: "text",testo: "text",titolo: "text"},{weights: {"about.author": 1,sottotitolo: 7,testo: 5,titolo: 10},name: "notiziaDetails"})
db.notizia.ensureIndex({"about.author": "text",sottotitolo: "text",testo: "text",titolo: "text"},{weights: {"about.author": 1,sottotitolo: 7,testo: 5,titolo: 10},name: "notiziaDetails"})
db.article_stats.ensureIndex({ "notizia": 1, "time": 1, "deleted": 1 }, {name: "quick_upsert"})
db.banner_stats.ensureIndex({ "banner": 1, "time": 1, "deleted": 1 }, {name: "quick_upsert"})
db.pageview_stats.ensureIndex({ "deleted": 1, "time": 1, "page": 1 }, {name: "quick_upsert"})