How to find best fuzzy match for a string in a large string database

前端 未结 7 1844

I have a database of strings (arbitrary length) which holds more than one million items (potentially more).

I need to compare a user-provided string against the whol

7条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-08 11:33

    Since the amount of data is large, when inserting a record I would compute and store the value of the phonetic algorithm in an indexed column and then constrain (WHERE clause) my select queries within a range on that column.

提交回复
热议问题