Skip to content

Commit

Permalink
Add new mongo indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
nkokla committed May 21, 2024
1 parent 084ee5f commit 10a4685
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/util/mongo.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,15 @@ class Mongo {
await this.db.collection('numeros').createIndex({banIdSecondaryCommonToponyms: 1})
await this.db.collection('numeros').createIndex({banIdDistrict: 1})
await this.db.collection('numeros').createIndex({tiles: 1})
await this.db.collection('numeros').createIndex({sources: 1})
await this.db.collection('pseudo_codes_voies').createIndex({codeCommune: 1})
await this.db.collection('sources_adresses').createIndex({codeCommune: 1, dataSource: 1})
await this.db.collection('sources_parts').createIndex({source: 1, part: 1})
await this.db.collection('sources_communes').createIndex({codeCommune: 1, source: 1})
await this.db.collection('sources_communes').createIndex({source: 1, part: 1})
await this.db.collection('communes').createIndex({compositionAskedAt: 1}, {sparse: true})
await this.db.collection('communes').createIndex({codeCommune: 1}, {unique: true})
await this.db.collection('communes').createIndex({typeComposition: 1})
await this.db.collection('communes').createIndex({banId: 1})
await this.db.collection('metrics').createIndex({name: 1, date: 1}, {unique: true})
}
Expand Down

0 comments on commit 10a4685

Please sign in to comment.