If I am searching for the string ABC123. Does it affect performance if I have
SELECT string FROM TABLE WHERE
string like `ABC123%`
A couple notes if this helps with the answer. The longest the string will be is 6 characters. There won’t be anything like ABC1231 or ABC123B
If
stringis indexed you shouldn’t see any performance difference.That said, you should always perform prudent performance testing in your environment, against your data, and with a realistic and concurrent workload rather than rely on what some guy on StackOverflow says.