Ive been tasked with linking the ids of two different API's, the linking will be done based on names, therefore the searches use wildcard are a bit slow.
For example- One api uses the name Lionel Messi, while the other uses Lionel Andrés Messi. To solve this queries are done by doing
select id from players WHERE name LIKE '%Lionel%Messi%'
This proves effective but slow with queries taking an average of .3 seconds, and with 100k searches necessary this will take all day.
Since the slow bit is the query, would it be possible for my php program to be multi threaded so that multiple queries could run at the same time.
Would it be as simple as splitting the list of 100k searches into 4 lists of 25k, and just running the script in 4 different web pages?
EDIT-BTW the column "name" is an index in the table "players" however that seems to have little to no impact on speed