Domanda

I've a question about the best way to get product data searching by name. Which one is better way to do that?

  1. SELECT * FROM Products WHERE ProductName = 'Samsung Note 2'
  2. Creating a full text index for ProductName and get matching products that way

In brief, can my query be faster if I create a full text index?

È stato utile?

Soluzione

Are you searching..

  • whole ProductName? Then use a normal index
  • individual words or fuzzy matches in a ProductName? Use full text serach
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top