Skip to content

Investigate Area.metadata.leftRightIndex index #297

@vnugent

Description

@vnugent

When reviewing PR #296 I happened to look at the area schema and thought the current index on leftRightIndex is incorrect (we're not just searching for a leftToRightIndex alone). It should be a compound index with both _id and metadata.leftRightIndex.

https://github.com/OpenBeta/openbeta-graphql/blob/develop/src/db/AreaSchema.ts#L120

To do:

  • add .explain('executionStats') and see how it affects sorting

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions