I have a database with binary these strings
record no 1: 1111111111111011000100110001100100010000000000000011000000000000
record no 2: 1111111111111111111111100001100000010000000000000011000000000000
record no 3: 1110000011110000111010001110111011110000111100001100000011000000
...
So, i want to find out what record had similar bỉnary string with this: 1111111111111011000100110001100100010000000000000011000000001100
You can see, the record number 1 is 98% relevance. record number 2 is 70% relevance, and record number 3 is only 45% percent relevance.
This is huge database (200.000 records)...
SELECT HUMMINGDISTANCE(some_parameter) FROM yourtable;, if you adapt the function provided there. The author converts binary strings to big integers for performance, so you should adapt this while feeding the function with your parameters. He also uses 32 bytes, you have take that into consideration with your binary values.