Answer the question
In order to leave comments, you need to log in
What hashing algorithm to use?
Good evening!
There are about 100,000+ records in the database (constantly replenished).
There is a ProductName field (product name) and a ProductNameHash field (a hash of the product name, ProductName).
The ProductNameHash field is used in a query like
SELECT Id FROM Products WHERE P[email protected]Hash
Answer the question
In order to leave comments, you need to log in
It is important to exclude the possibility of collisionsThen pure hash is not good for you. A hash typically maps a set of inputs to a smaller set of hashes, and by definition allows for collisions.
We need to solve the problem of searching, not creating a hash.
Add tags to the product and search for them.
As a variant of a feature from the name (table of feature identifiers): "contains only one A", "contains only one B", .. etc.
And first, make a selection by feature - filter, and in the received records - already search by full name.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question