Creating a “spell check” that checks against a database with a reasonable runtime

后端 未结 6 1710
Happy的楠姐
Happy的楠姐 2021-01-31 05:22

I\'m not asking about implementing the spell check algorithm itself. I have a database that contains hundreds of thousands of records. What I am looking to do is checking a user

6条回答
  •  感情败类
    2021-01-31 05:31

    it loads all records from a user-specified table (or tables) into memory and then performs the check

    don't do that

    Either

    • Do the match match on the back end and only return the results you need.

    or

    • Cache the records into memory early on a take the working set hit and do the check when you need it.

提交回复
热议问题