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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve MongoDB indexes #9162

Closed
exalate-issue-sync bot opened this issue Aug 3, 2023 · 0 comments
Closed

Improve MongoDB indexes #9162

exalate-issue-sync bot opened this issue Aug 3, 2023 · 0 comments

Comments

@exalate-issue-sync
Copy link

exalate-issue-sync bot commented Aug 3, 2023

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.

mergify bot pushed a commit to gravitee-io/gravitee-api-management that referenced this issue Aug 3, 2023
jgiovaresco added a commit to gravitee-io/gravitee-api-management that referenced this issue Aug 3, 2023
mergify bot pushed a commit to gravitee-io/gravitee-api-management that referenced this issue Aug 4, 2023
jgiovaresco added a commit to gravitee-io/gravitee-api-management that referenced this issue Aug 4, 2023
kkibbey1996 pushed a commit to gravitee-io/gravitee-api-management that referenced this issue Aug 9, 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

0 participants