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

Add index on publicKeyCredentialId in Doctrine mapping #670

Open
wants to merge 1 commit into
base: 5.1.x
Choose a base branch
from

Conversation

Spomky
Copy link
Contributor

@Spomky Spomky commented Jan 4, 2025

This commit introduces a database index on the publicKeyCredentialId field in the PublicKeyCredentialSource mapping. The added index aims to optimize query performance for operations involving this column.

Target branch: 5.1.x
Resolves issue #665

  • It is a Bug fix
  • It is a New feature
  • Breaks BC
  • Includes Deprecations

This commit introduces a database index on the `publicKeyCredentialId` field in the `PublicKeyCredentialSource` mapping. The added index aims to optimize query performance for operations involving this column.
@Spomky Spomky added the enhancement New feature or request label Jan 4, 2025
@Spomky Spomky added this to the 5.1.0 milestone Jan 4, 2025
@Spomky Spomky self-assigned this Jan 4, 2025
Comment on lines +8 to +10
<indexes>
<index name="pkcid_idx" columns="publicKeyCredentialId"/>
</indexes>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about making it a unique column instead? That already gives it an index, plus it guarantees it's unique.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants