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

fix(server): face search results not always sorted #7839

Merged
merged 2 commits into from Mar 11, 2024

Conversation

mertalev
Copy link
Contributor

@mertalev mertalev commented Mar 11, 2024

Description

VBASE doesn't have a guarantee of sort order, so it's possible for the most similar face to not be the top result. This is bounded by the fact that we have a distance threshold, but it's still better to sort here to make sure we pick the most similar face every time. The overhead of this is almost nothing since the number of rows is so low.

Copy link

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0d7e548
Status: ✅  Deploy successful!
Preview URL: https://06a05e1b.immich.pages.dev
Branch Preview URL: https://fix-server-recognition-order.immich.pages.dev

View logs

@alextran1502 alextran1502 merged commit 8dc62bd into main Mar 11, 2024
25 of 26 checks passed
@alextran1502 alextran1502 deleted the fix/server-recognition-order branch March 11, 2024 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants