Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Task] Improve MongoDB indexes #9194

Closed
Okhelifi opened this issue Aug 18, 2023 · 1 comment
Closed

[Task] Improve MongoDB indexes #9194

Okhelifi opened this issue Aug 18, 2023 · 1 comment

Comments

@Okhelifi
Copy link
Member

Okhelifi commented Aug 18, 2023

馃摑 Description

Mongo Atlas Performance Advisor raised warnings about:

Missing indexes:

On 3.19/3.20/4.0

node_monitoring:聽{ type: 1, updatedAt: 1 }

events: { "properties.dictionary_id":1, "updatedAt" : -1}

On 4.0 only

apis: { "environmentId": 1, "name": 1, "definitionVersion": 1 }

subscriptions: { "updatedAt": 1 }

Redundant indexes.

On 3.19/3.20/4.0

events

{ "type" : 1 }

{ "properties.api_id" : 1 }

FYI, an index that is a prefix of another compound index is redundant and can be removed to improve write performance. Since these indexes are prefixes of another compound index, removing them will not affect your read performance.

馃攷 Technical Details

No response

馃懡 Additional Information

No response

@Okhelifi
Copy link
Member Author

Duplicate of #9162

@Okhelifi Okhelifi marked this as a duplicate of #9162 Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant