WIPACrepo / file_catalog

Store file metadata information in a file catalog
MIT License
1 stars 4 forks source link

Flip `locations.site`-`locations.path` Compound Index #113

Closed ric-evans closed 2 years ago

ric-evans commented 2 years ago

Currently, this compound index is in increasing cardinality: locations.site-locations.path. This does not help in querying due to the large difference in cardinalities.

Instead, flip this compound index to be locations.path-locations.site, so we can query by locations.path.

The active MongoDB instance will need to be altered right before merge/publish/restart.