I will be implementing this in the sql side, so I would end up having something like
where company.name like '%:parameter%'
I've read before that this would then make it impossible for the DB to use the company.name index.
My question then would be, what other options do I have to minimize the performance degradation that this will introduce to the search? Please note that, this is client requirements therefore I don't have the option to not implement (even though I explained to them the performance consequence of this).
The application is using Sybase SE 12.5.3 (based on the driver used in DBArtisan 8.5.5)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…