optimize sql queries for comparing an array -


i have 100-800 words (user input) want match 50 keywords (in sql database). since going on web app want make optimized. i'm beginner sql , wanting know efficient ways of doing are.

right have words hash stored in database.

  • take input
  • go through each word , calc it's hash
  • put hash code array in order (don't need duplicates)
  • then search each 1 (all need know if there key word there)

ie iterate members in hashcode array:

select *  hash_table hash_code = hash_var; 

running query against database each or ineffective.. going run 100-800 querys (ouch).. 1 solution maybe running of in 1 query (using in() operator) still means sending of text database.. since database 50 words.. (even if more).. think perform better if select of words list, , comparison on c#.. can optimize , fetch list once.. before 100-800 comparisons


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -