Skip to content

Commit

Permalink
changed some indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristian Goina committed May 17, 2024
1 parent 7e0ecc0 commit 32b2ae6
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,15 @@ public NeuronMetadataMongoDao(MongoDatabase mongoDatabase, IdGenerator idGenerat

@Override
protected void createDocumentIndexes() {
// use hashed indexes for values that makes sense to be in different shards
mongoCollection.createIndex(Indexes.hashed("class"));
mongoCollection.createIndex(Indexes.hashed("libraryName"));
mongoCollection.createIndex(Indexes.hashed("publishedName"));
mongoCollection.createIndex(Indexes.hashed("mipId"));
mongoCollection.createIndex(Indexes.ascending("publishedName"));
mongoCollection.createIndex(Indexes.ascending("slideCode"));
mongoCollection.createIndex(Indexes.ascending("mipId"));
mongoCollection.createIndex(Indexes.ascending("tags"));
mongoCollection.createIndex(Indexes.hashed("neuronType"));
mongoCollection.createIndex(Indexes.hashed("neuronInstance"));
mongoCollection.createIndex(Indexes.ascending("neuronType"));
mongoCollection.createIndex(Indexes.ascending("neuronInstance"));
mongoCollection.createIndex(Indexes.ascending(
"computeFiles.InputColorDepthImage", "computeFiles.SourceColorDepthImage"
));
Expand Down

0 comments on commit 32b2ae6

Please sign in to comment.