Answer the question
In order to leave comments, you need to log in
What is the best way to optimize the %name% query?
Hello
At work I delve into a new project, I solve the accumulated bugs. Solving one of them, I saw this part of the request:
`post`.`tags` LIKE 'пресс-релиз,%' OR
`post`.`tags` LIKE '%, пресс-релиз,%' OR
`post`.`tags` LIKE '%,пресс-релиз' OR
`post`.`tags` LIKE 'пресс-релиз'
`post`.`tags` LIKE '%пресс-релиз%'
Answer the question
In order to leave comments, you need to log in
If this is a string of tags, then it is best to remake the database - move the tags to a separate table and add an additional link table.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question