Skip to content

Commit

Permalink
fix(data): Removed problematic indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
Crejak committed Apr 9, 2024
1 parent 74d7159 commit 4dcee02
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ public static Map<Bson, IndexOptions> getIndexes() {

// Multi-fields indexes : Access by experiment and (variable, target, provenance agent). Add date to ensure index usage in case of sorting by date
indexes.put(Indexes.compoundIndex(experimentAscIndex, variableAscIndex, targetDescIndex, dateDescIndex), defaultOptions);
indexes.put(Indexes.compoundIndex(experimentAscIndex, agentAscIndex, targetDescIndex, dateDescIndex), defaultOptions);
indexes.put(Indexes.compoundIndex(experimentAscIndex, targetDescIndex, agentAscIndex, dateDescIndex), defaultOptions);

// Compound index : ensure unicity #TODO delete this index (index on whole field,too big and not well used in query)
indexes.put(Indexes.compoundIndex(variableAscIndex, Indexes.ascending(DataModel.PROVENANCE_FIELD), targetDescIndex, dateDescIndex), new IndexOptions().unique(true));
Expand Down

0 comments on commit 4dcee02

Please sign in to comment.