Skip to content

C7.1: Add compound index idx_timestamp_species on detections collection - #993

Open
mansipatel765-sk wants to merge 1 commit into
mainfrom
EB/MUP/c7.1-mongodb-indexing
Open

C7.1: Add compound index idx_timestamp_species on detections collection#993
mansipatel765-sk wants to merge 1 commit into
mainfrom
EB/MUP/c7.1-mongodb-indexing

Conversation

@mansipatel765-sk

Copy link
Copy Markdown
Contributor

Added compound index idx_timestamp_species ({timestamp: -1, species: 1}) on the detections collection to optimize queries filtering by species and timestamp.

Verified with .explain("executionStats") — confirms the index is used correctly (IXSCAN) and avoids full collection scans on the target query pattern.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant