-
-
Notifications
You must be signed in to change notification settings - Fork 176
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
Comparing with all existing hashes in DB #45
Comments
You can use query like this:
|
Thanks! |
We are using postgres for our project, so it doesn't have bit_count method. I did custom function for that:
select hash_distance('100000', '11010011'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! It is works fine if I need to compare exactly two images. But what if I have 3 millions hashes in DB and need to compare my current hash with each other in database (find all similar from images that already exists). Is there any solution except direct comparing? May be it's possible to use something similar to distance function right in database?
The text was updated successfully, but these errors were encountered: