If you are doing a search against several columns in the database (product category, product description, product short description) and using 'LIKE', is it faster to search each field or a concatenation of all the fields?
For example
select ...
from ...
where columnA like '%abc%'
or columnB like '%abc%'
or columnC like '%abc%'
versus
select ...
from ...
where (columnA + coulumnB + columnC) like '%abc%'
My guess is the conactenation takes too much time
For example
select ...
from ...
where columnA like '%abc%'
or columnB like '%abc%'
or columnC like '%abc%'
versus
select ...
from ...
where (columnA + coulumnB + columnC) like '%abc%'
My guess is the conactenation takes too much time