A
A
Ayk722016-01-10 22:52:53
MySQL
Ayk72, 2016-01-10 22:52:53

How to speed up a website on DLE?

Good evening!
Stupid site on DLE, where about 12,000 news.
It loads in 1-2 seconds. Only the cache helps. But it is necessary to speed up requests too.
Normal requests are loaded in 1-1.5 seconds. Also a lot.
Queries such as:

regexp '(" . $cats . ")
и
where (category LIKE '%$cats%')
и
where MATCH (category) AGAINST ('$cats')

Where $cats is a genre (word), for example "action movie".
The table is stored like this: "action movie, drama, crime."
Can you please tell me how to speed up the site? And which of these 3 is the most optimal to use, as a speed.
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xmoonlight, 2016-01-10
@xmoonlight

it's best to move $cats to a separate table with ID
and create a link table: for movie ID and category ID.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question