Frage

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?

War es hilfreich?

Lösung

Are you searching..

  • whole ProductName? Then use a normal index
  • individual words or fuzzy matches in a ProductName? Use full text serach
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top