Skip to content

[bug]: Wrong indexing in the schema #5

Closed
@ghost

Description

The KeyStore schema uses multiple indexing which only works if you are using those individual fields to query in the db. So, findforKey and find in src/database/repository/KeystoreRepo.ts will not use the index currently defined.

Inorder to fix this, you need to make two indexes:

  1. For findforKey which uses compound indexing { client: 1, primaryKey: 1 }
  2. For find which uses compound indexing { client: 1, primaryKey: 1, secondaryKey: 1 }

This is how the Keystore schema should have been indexed.

I am willing to create a pull a request for this change. Please acknowledge. 😃

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions